Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for do (0.02 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops_pass.cc

      // Note: This module search for cluster ops is a bit wasteful as we could have
      // collected many cluster ops when we were populating reachable functions. But
      // we would still need to do a walk to find all clusters that do not
      // reference any function.
      for (func::FuncOp func : module.getOps<func::FuncOp>()) {
        // If we have already applied patterns to a function then we can skip
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:01:13 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      mlir::Builder builder(ctx);
    
      // Collect devices with attached metadata.
      llvm::SmallVector<mlir::NamedAttribute, 8> devices;
      devices.reserve(device_set->devices().size());
    
      // For device that do not have any metadata, or if we failed to parse metadata
      // from the DeviceSet, we add a unit attribute to the `tf.devices` attribute.
      for (Device* device : device_set->devices()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

        }
    
        auto layout = mlir::GetTPUInfeedLayout(
            mlir::TupleType::get(builder.getContext(), result_types), builder);
        if (failed(layout)) return mlir::WalkResult::interrupt();
        // Do not append a UnitAttr for the "token" operand here to avoid
        // compilation failure when exporting the "layouts" attribute to a graph
        // node. Instead, add the UnitAttr during LegalizeTF pass.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc

      if (absl::Status status = AddCalibrationStatistics(
              module_op, calibration_data_dir, config.calibration_options(),
              *py_function_lib_);
          !status.ok()) {
        LOG(WARNING) << "Some CustomAggregator ops do not have min or max "
                        "values. Parts of the graph are not quantized. "
                     << status;
      }
    
      return module_op;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate_registration.cc

    ==============================================================================*/
    
    // This file wraps TensorFlow Graph(Def) to MLIR module conversion into passes
    // to satisfy the API of MLIR pass registration. In order to do this, the
    // command-line option header is pulled in.
    
    #include <memory>
    #include <utility>
    
    #include "absl/container/flat_hash_set.h"
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  6. tensorflow/cc/ops/while_loop.cc

    Status CreateCond(const Scope& scope, const CondGraphBuilderFn& cond,
                      const std::vector<Output>& inputs, Output* output) {
      // The control dependency is for constants in the cond graph, and other ops
      // that do not depend on the loop variables. This ensures that these ops are
      // in the while loop frame (since they will indirectly depend on an Enter node
      // defining the frame) and that they are executed once per loop iteration.
      //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 01:01:21 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/cpp/renderers/renderer_test.cc

          BlankLine();
          BlockOpen("void TestFunction()");
          {
            Statement("int i = 1");
            BlankLine();
            BlockOpen("while (i == 1)");
            {
              CommentLine("Do nothing, really....");
              CodeLine("#if 0");
              Statement("call()");
              CodeLine("#endif");
              BlockClose();
            }
            BlockClose("  // comment ending TestFunction");
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/aot/test_google.cc

    See the License for the specific language governing permissions and
    limitations under the License.
    ==============================================================================*/
    
    // Generated by the tf_library build rule.  DO NOT EDIT!
    //
    // This file contains a test and benchmark for the function generated by
    // tfcompile.  All tokens of the form `{{TFCOMPILE_*}}` must be rewritten to
    // real values before this file can be compiled.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc

        rewriter.eraseOp(call_op);
        func_op.eraseResult(0);
        func_op.insertResult(0, new_call_op.getResult(0).getType(),
                             /*resultAttrs=*/nullptr);
    
        // Modify the quantized fused function to do dequantize+relu(6).
        rewriter.setInsertionPoint(req_op);
        Value new_result = rewriter.create<mlir::stablehlo::UniformDequantizeOp>(
            req_op.getLoc(), func_op.getResultTypes()[0], req_op.getOperand());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/tf_dialect_to_executor.cc

      // First, we need to convert from functional, to executor dialect.
      pm.addNestedPass<FuncOp>(
          mlir::CreateFunctionalToExecutorDialectConversionPass());
    
      // Do a single pass to split the graph's single island op into an island per
      // op as expected by the following passes.
      pm.addNestedPass<FuncOp>(mlir::TF::CreateSplitIntoIslandPerOpPass());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 13 23:22:50 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top