Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/jit/device_util.cc

        const jit::DeviceInfoCache& device_info_cache,
        const jit::DeviceSet& devices, bool allow_mixing_unknown_and_cpu,
        bool failure_to_pick_is_error) {
    #define FAILED_TO_PICK_DEVICE(failing_status) \
      do {                                        \
        if (failure_to_pick_is_error) {           \
          return failing_status;                  \
        } else {                                  \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/lower_variable_ops_to_ml_program.cc

      Type type = GetGlobalType(source);
      std::string name = GetVariableName(source);
      if (auto existing = symbol_table.lookup<ml_program::GlobalOp>(name)) {
        // This might be of a different type, but we'll do a Cast later.
        return existing;
      }
    
      Attribute initial_value = GetInitialValue(source);
      if (!initial_value) {
        initial_value = builder.getZeroAttr(type);
        if (!initial_value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 23:53:00 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top