Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for created (0.18 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump.cc

      const std::string dump_file_path =
          tsl::io::JoinPath(*dump_dir, dump_file_name);
      TF_ASSIGN_OR_RETURN(std::unique_ptr<llvm::raw_ostream> file,
                          WritableFileWrapper::Create(dump_file_path));
    
      LOG(INFO) << "IR dump file created: " << dump_file_path;
      return file;
    }
    
    class PrinterConfig : public mlir::PassManager::IRPrinterConfig {
     public:
      explicit PrinterConfig(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 05:38:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      } else {
        return false;
      }
      return true;
    }
    
    // Create a dummy zero to be fed locally from the host to the TPUExecute.
    Value CreateZeroInput(Location loc, OpBuilder& builder, Attribute zero_attr,
                          DenseIntElementsAttr shape_attr) {
      ConstOp zero = builder.create<ConstOp>(loc, zero_attr);
      zero->setAttr(kICIWeightDistributionMlirBridgeMarker,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

          tensorflow::GetTypeFromTFTensorShape({1}, shape_dtype);
      auto expanded_start_index = rewriter->create<TF::ExpandDimsOp>(
          loc, vector_type, start_index, scalar_zero);
      auto start_position = rewriter->create<TF::ConcatOp>(
          loc, position_type, scalar_zero,
          ArrayRef<Value>({expanded_start_index, partial_start_position}));
    
      // Create the slice size tensor. This is done by concatenating `size` and
      // `partial_size`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc

    // be created).
    static void DumpModule(mlir::ModuleOp module, std::string file_prefix) {
      std::string prefix = GetDumpDirFromEnvVar();
      if (prefix.empty()) return;
    
      auto* env = tensorflow::Env::Default();
      auto status = env->RecursivelyCreateDir(prefix);
      if (!status.ok()) {
        LOG(WARNING) << "cannot create directory '" << prefix
                     << "': " << status.message();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

      for (const auto& device : devices)
        if (DeviceNameUtils::IsCompleteSpecification(spec, device))
          matching_devices.push_back(device);
      return matching_devices;
    }
    
    // Create error message for a conflicting attribute of a device.
    template <typename T>
    absl::Status MismatchedTPUSystemAttributeErr(absl::string_view attribute, T a,
                                                 T b) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf_test.cc

      EXPECT_EQ(compilation_status.Delta(kOldBridgeWithFallbackModeSuccess), 0);
    }
    
    TEST(LegalizeTFTest, RecordsStreamzForNoMlirFallback) {
      FunctionDef my_func =
          tensorflow::FunctionDefHelper::Create("empty", {}, {}, {}, {}, {});
    
      tensorflow::FunctionDefLibrary fdef;
      *(fdef.add_function()) = my_func;
      tensorflow::FunctionLibraryDefinition flib_def(
          tensorflow::OpRegistry::Global(), fdef);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

                                        tflite::BuiltinOperator builtin) {
      auto it = opcode_index_map_.insert({op_name, 0});
    
      // If the insert succeeded, the opcode has not been created already. Create a
      // new operator code and update its index value in the map.
      if (it.second) {
        it.first->second = opcodes_.size();
        auto custom_code = builtin == tflite::BuiltinOperator_CUSTOM
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

            rewriter.create<SubtractOp>(loc, b_max_diag_len, diag_len_d), b_zero);
    
        // x = max(d, 0) - offset
        // y = max(-d, 0) - offset
        Value x = rewriter.create<SubtractOp>(
            loc, rewriter.create<MaxOp>(loc, d, b_zero), offset);
        Value y = rewriter.create<SubtractOp>(
            loc, rewriter.create<MaxOp>(loc, neg_d, b_zero), offset);
    
        Value n_plus_x = rewriter.create<AddOp>(loc, iotaN, x);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      nodes_[inst] = node;
      return absl::OkStatus();
    }
    
    bool IsEntryFunctionArg(BlockArgument arg) {
      return arg.getParentRegion()->getParentOfType<FuncOp>().getName() == "main";
    }
    
    // Creates argument nodes from Block argument. If a name is supplied, that
    // name will be used instead of generating a unique name.
    Status Exporter::AddArgumentNode(BlockArgument arg, unsigned index,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      return UnrankedTensorType::get(element_type);
    }
    
    // Returns true if the op creates a TensorList.
    bool IsTensorListInitOp(Operation* op) {
      return isa<TensorListReserveOp>(op) || isa<EmptyTensorListOp>(op) ||
             isa<TensorListFromTensorOp>(op);
    }
    
    // Returns the `element_shape` operand of the ops that create a TensorList.
    Value GetElementShapeOperand(Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
Back to top