- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 310 for module_op_ (0.33 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
}; func::FuncOp GetMainFuncOp(ModuleOp module_op) { for (auto func_op : module_op.getOps<func::FuncOp>()) { if (func_op.getSymName() == "main") { return func_op; } } return {}; } TEST_F(ConvertAssetArgsTest, ConvertsSingleAssetArg) { OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir( module {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import_test.cc
// MLIR @main function corresponds to the TF function "main_original". OwningOpRef<ModuleOp> module_op = ParseModuleOpString(R"mlir( func.func private @main(%arg: tensor<1x2xf32>) -> (tensor<1x2xf32>) attributes {tf._original_func_name = "main_original"} { return %arg : tensor<1x2xf32> } )mlir"); ASSERT_TRUE(module_op); absl::flat_hash_map<FunctionName, FunctionAlias> function_aliases;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 07 03:47:17 UTC 2024 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model_test.cc
constexpr StringRef kModuleOpStr = R"mlir(module attributes {tf_saved_model.semantics} {})mlir"; Block block; ModuleOp module_op = ParseModuleOp(kModuleOpStr, block, ctx_); func::FuncOp init_func_op = GetInitializerFunction( module_op, /*initializer_type=*/kTfSavedModelInitializerInitType); EXPECT_THAT(init_func_op, IsNull()); } TEST_F(TfSavedModelTest,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 01 05:03:09 UTC 2023 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/func_test.cc
module { func.func @main() -> () { return } } )mlir"; OwningOpRef<ModuleOp> module_op = ParseModuleOpString(kModuleWithMainFunc); EXPECT_THAT(*module_op, NotNull()); func::FuncOp main_func_op = FindMainFuncOp(*module_op); EXPECT_THAT(main_func_op, NotNull()); } TEST_F(FindMainFuncOpTest, ReturnsNullWhenMainFuncOpIsPrivate) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 09:05:02 UTC 2024 - 3.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.h
// Runs calibration on `module_op` and returns a calibrated ModuleOp with // calibrated statistics embedded. absl::StatusOr<ModuleOp> Run( ModuleOp module_op, const ::stablehlo::quantization::QuantizationConfig& config) override; private: // Exports `module_op` to SavedModel at `dst_saved_model_path`. This is used // to export the pre-calibrated `module_op` to SavedModel so that the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc
// passed to the target function. LogicalResult LiftHashTableOpsToArguments(ModuleOp module_op, func::FuncOp target_func) { if (!llvm::hasSingleElement(target_func)) return success(); if (!UsedBySupportedOps(module_op, target_func)) return success(); if (IsMainOrInitializerFunction(module_op, target_func)) return success(); llvm::StringMap<int> shared_name_to_arg_idx;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/calibration/component.cc
} // namespace absl::Status RunCalibrationPasses( mlir::ModuleOp module_op, MLIRContext& ctx, absl::string_view calibration_data_dir, const bool force_regenerate_calibration_data) { // Disable DumpTensor ops when running calibration. DisableDebugging(module_op); std::vector<std::string> skipping_aggregator_ops; if (!force_regenerate_calibration_data) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 06:31:57 UTC 2024 - 9.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.h
SessionInitializerOp GetSessionInitializerOp(ModuleOp module_op); // Returns the exported name for the session initializer function. SmallVector<StringRef, 2> GetSessionInitializerExportedName(ModuleOp module_op); // Returns initializer function ops. These functions' symbols are in the // "initializers" attribute of the session initializer op. SmallVector<func::FuncOp, 2> GetInitializerFunctions(ModuleOp module_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 18 03:21:34 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization.h
// `module_op` is the input graph to be quantized and it should contain // StableHLO ops. // // Returns a quantized `ModuleOp` in StableHLO, potentially wrapped inside a // XlaCallModuleOp. Returns a non-OK status if quantization fails, or any of // `saved_model_bundle` or `quantization_py_function_lib` is a nullptr. absl::StatusOr<mlir::ModuleOp> RunQuantization(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 19 02:44:03 UTC 2024 - 2.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc
mlir::OpBuilder builder(&ctx); auto module_op = builder.create<mlir::ModuleOp>(builder.getUnknownLoc()); // Destroy by calling destroy() to avoid memory leak since it is allocated // with malloc(). const absl::Cleanup module_op_cleanup = [module_op] { module_op->destroy(); }; const mlir::LogicalResult result = pm.run(module_op); EXPECT_FALSE(failed(result));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 03:17:14 UTC 2024 - 6.4K bytes - Viewed (0)