- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for AssetFileDef (0.15 sec)
-
tensorflow/cc/saved_model/loader_util.cc
return absl::OkStatus(); } const auto& any_assets = assets_it->second.any_list().value(); for (const auto& any_asset : any_assets) { AssetFileDef asset_file_def; TF_RETURN_IF_ERROR( ParseAny(any_asset, &asset_file_def, "tensorflow.AssetFileDef")); asset_file_defs->push_back(asset_file_def); } return absl::OkStatus(); } } // namespace internal
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Feb 10 10:25:28 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args_test.cc
return } } )mlir"); FailureOr<SmallVector<AssetFileDef>> asset_file_defs = ConvertAssetArgs(*module_op); EXPECT_TRUE(succeeded(asset_file_defs)); EXPECT_THAT(*asset_file_defs, SizeIs(1)); const AssetFileDef& asset_file_def = *asset_file_defs->begin(); EXPECT_THAT(asset_file_def.filename(), Eq("file_0.txt"));
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_export.h
const absl::flat_hash_map<std::string, std::string>& function_aliases, const std::vector<tensorflow::AssetFileDef>& asset_file_defs); // Sets up and runs the passes for exporting `module_op`. The behavior of the // exporting passes is controlled by `export_opts`. Returns `AssetFileDef`s that // associate the input arguments of @main and the asset file names. Asset file
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:11:25 UTC 2024 - 6.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.cc
if (filename.find("assets/") == 0) { return filename.drop_front(7); } else { return filename; } } AssetFileDef CreateAssetFileDef(const StringRef filename, const StringRef tensor_name) { AssetFileDef asset_file_def{}; asset_file_def.set_filename(MaybeStripAssetDirectoryPrefix(filename).str()); tensorflow::TensorInfo tensor_info{};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export.cc
using ::mlir::tf_saved_model::kTfSavedModelInitializerRestoreType; using ::stablehlo::quantization::QuantizationConfig; using ::stablehlo::quantization::io::GetLocalTmpFileName; using ::tensorflow::AssetFileDef; using ::tensorflow::ConvertMlirToGraph; using ::tensorflow::FunctionDefLibrary; using ::tensorflow::FunctionLibraryDefinition; using ::tensorflow::Graph; using ::tensorflow::GraphDef; using ::tensorflow::Node;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:11:25 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/convert_asset_args.h
// "tf_saved_model.index_path", if the bound input is attached to the // `tf_saved_model::AssetOp`. // * Strips the "assets/" prefix of the filename when setting it to // `AssetFileDef`. FailureOr<SmallVector<tensorflow::AssetFileDef>> ConvertAssetArgs( ModuleOp module_op); } // namespace mlir::quant
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 01:45:41 UTC 2023 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_export_test.cc
EXPECT_THAT(exported_model.function_aliases().at("func2"), StrEq("alias2")); } TEST(CreateExportedModelTest, CreateExportedModelWithAddedAssetFileDefs) { AssetFileDef asset1; ASSERT_TRUE( TextFormat::ParseFromString(R"pb(filename: "fname1")pb", &asset1)); AssetFileDef asset2; ASSERT_TRUE( TextFormat::ParseFromString(R"pb(filename: "fname2")pb", &asset2));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:11:25 UTC 2024 - 19.6K bytes - Viewed (0) -
tensorflow/cc/saved_model/loader_util.h
Status GetInitOp(const string& export_dir, const MetaGraphDef& meta_graph_def, string* init_op_name); Status GetAssetFileDefs(const MetaGraphDef& meta_graph_def, std::vector<AssetFileDef>* asset_file_defs); } // namespace internal } // namespace tensorflow
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 12 20:05:11 UTC 2020 - 1.5K bytes - Viewed (0) -
tensorflow/cc/saved_model/loader.cc
Tensor tensor(DT_STRING, TensorShape({})); tensor.scalar<tstring>()() = value; return tensor; } void AddAssetsTensorsToInputs(const StringPiece export_dir, const std::vector<AssetFileDef>& asset_file_defs, std::vector<std::pair<string, Tensor>>* inputs) { if (asset_file_defs.empty()) { return; } for (auto& asset_file_def : asset_file_defs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 02 04:36:00 UTC 2024 - 23K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py
saver_def: Optional[saver_pb2.SaverDef] = None, checkpoint_dir: Optional[str] = None, function_aliases: Optional[Mapping[str, str]] = None, asset_file_defs: Sequence[meta_graph_pb2.AssetFileDef] = (), ) -> None: """Saves the model. Saves the provided graph def as SavedModel. Uses TF1 SavedModel semantics (i.e. no object graph). Args: graph_def: Graph to save.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 01:09:50 UTC 2024 - 12.3K bytes - Viewed (0)