- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for AssetFileDef (0.18 sec)
-
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/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.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) -
tensorflow/c/experimental/saved_model/core/saved_model_utils.cc
absl::Span<const AssetFileDef> assets, std::unique_ptr<Asset>* output) { int asset_index = asset.asset_file_def_index(); if (asset_index >= assets.size()) { return errors::FailedPrecondition( "SavedAsset contained asset index ", asset_index, " but AssetFileDef only contains ", assets.size(), " # of assets"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 12 19:17:46 UTC 2023 - 24K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/quantize_model.cc
unfreeze_constants, checkpoint_dir, /*debug_name=*/absl::StrCat(step_name, kExportStepSuffix)}; TF_ASSIGN_OR_RETURN(const llvm::SmallVector<AssetFileDef> asset_file_defs, RunExportPasses(export_opts, *ctx, module_op)); return ConvertMlirModuleToExportedModel( module_op, checkpoint_dir, function_aliases,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/cc/saved_model/testdata/half_plus_two_pbtxt/00000123/saved_model.pbtxt
} } } collection_def { key: "saved_model_assets" value { any_list { value { type_url: "type.googleapis.com/tensorflow.AssetFileDef" value: "\n\t\n\007Const:0\022\007foo.txt" } } } } collection_def { key: "trainable_variables" value { bytes_list {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 26 01:10:27 UTC 2017 - 46.9K bytes - Viewed (0)