- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for MetaGraphDef (0.22 sec)
-
tensorflow/cc/saved_model/loader.cc
// An empty init_op_name indicates that there are no init ops to run. Status RunInitOp(const RunOptions& run_options, const string& export_dir, const MetaGraphDef& meta_graph_def, const std::vector<AssetFileDef>& asset_file_defs, Session* session, const string& init_op_name) { if (!init_op_name.empty()) {
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/py_function_lib.py
the representative dataset for the actual data provided for inference. Args: model_dir: Path to SavedModel directory. tags: Collection of tags identifying the MetaGraphDef within the SavedModel. representative_dataset_map: A map where signature keys are mapped to corresponding representative datasets. Raises:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 05:32:11 UTC 2024 - 27.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto
message WeightOnlyPtqPreset {} // Metadata specific to the input TensorFlow SavedModel, which may be required // to identify the specific MetaGraphDef to quantize, for example. // Next ID: 2 message TfSavedModelConfig { // Set of tags that uniquely identify the `MetaGraphDef` existing in the // input SavedModel. repeated string tags = 1; } // Configures the graph transformation pipeline for quantization.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 14.3K bytes - Viewed (0) -
tensorflow/cc/tools/freeze_saved_model_test.cc
void AddSignatureDefToSavedModelBundle(const SignatureDef& signature_def, const string& key, SavedModelBundle* saved_model_bundle) { MetaGraphDef* meta_graph_def = &saved_model_bundle->meta_graph_def; (*meta_graph_def->mutable_signature_def())[key] = signature_def; } // Adds an initialized session to `saved_model_bundle` using `graph_def` and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 07 13:30:31 UTC 2022 - 21.7K bytes - Viewed (0) -
tensorflow/cc/tools/freeze_saved_model.cc
for (const string& output_tensor_name : outputs) { nodes_to_visit.push(GetNodeNameFromTensorName(output_tensor_name)); } // We do a traversal backwards from the outputs specified in the MetaGraphDef. while (!nodes_to_visit.empty()) { const string node_name = nodes_to_visit.front(); nodes_to_visit.pop(); if (reachable_node_names->find(node_name) != reachable_node_names->end()) { continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 11 08:05:36 UTC 2023 - 11.9K bytes - Viewed (0) -
tensorflow/cc/saved_model/fingerprinting.cc
TF_RETURN_IF_ERROR(ReadBinaryProto(Env::Default(), pb_file, &saved_model)); // Create a copy of `metagraph` which will be used and mutated for fingerprint // computation. FingerprintDef fingerprint_def; MetaGraphDef* metagraph = saved_model.mutable_meta_graphs(0); // Set fingerprint field #1. fingerprint_def.set_saved_model_checksum(HashSavedModel(saved_model)); // Set fingerprint field #2.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 26 00:24:44 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc
absl::string_view saved_model_dir, const std::unordered_set<std::string>& tags, absl::Span<std::string> exported_names, mlir::MLIRContext* context, MLIRImportOptions options) { MetaGraphDef meta_graph_def; auto status = ReadMetaGraphDefFromSavedModel(saved_model_dir, tags, &meta_graph_def); if (!status.ok()) { LOG(ERROR) << "Failed to load saved model v1 '" << saved_model_dir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 11:51:44 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/cc/saved_model/saved_model_bundle_test.cc
io::JoinPath(testing::TensorFlowSrcRoot(), kTestDataSharded); TF_ASSERT_OK(LoadSavedModel(session_options, run_options, export_dir, {kSavedModelTagServe}, &bundle)); MetaGraphDef actual_metagraph; TF_ASSERT_OK(ReadMetaGraphDefFromSavedModel(export_dir, {kSavedModelTagServe}, &actual_metagraph)); EXPECT_EQ(actual_metagraph.DebugString(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 19:16:58 UTC 2023 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py
Args: saved_model_path: Path to the saved model. signature_keys: List of keys identifying SignatureDef to retrieve. If None, retrieve all except the init signature. tags: Set of tags identifying the MetaGraphDef within the SavedModel. Returns: A map from signature_key to its SignatureDef. """ if tags is None: tags = {tag_constants.SERVING} loader = saved_model_loader.SavedModelLoader(saved_model_path)
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
result; for (const FunctionDef& function_def : library.function()) { result[function_def.signature().name()] = &function_def; } return result; } Status PartiallyReviveSavedModelObjects(const MetaGraphDef& metagraph, ImmediateExecutionContext* context, const std::string& directory,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 12 19:17:46 UTC 2023 - 24K bytes - Viewed (0)