- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 28 for SavedModelBundle (0.26 sec)
-
tensorflow/cc/saved_model/saved_model_bundle_test.cc
} TEST_F(LoaderTest, RestoreSession) { SavedModelBundle bundle; SessionOptions session_options; RunOptions run_options; const string export_dir = io::JoinPath(testing::TensorFlowSrcRoot(), kTestDataSharded); TF_ASSERT_OK(LoadSavedModel(session_options, run_options, export_dir, {kSavedModelTagServe}, &bundle)); SavedModelBundle actual_bundle;
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/cc/tools/freeze_saved_model.h
// Returns a frozen GraphDef, input tensors, and output tensors from the loaded // SavedModelBundle. // `inputs` and `outputs` consist of the union of all inputs and outputs in the // SignatureDefs in the SavedModelBundle. // FreezeSavedModel sets `frozen_graph_def` to a GraphDef of all nodes needed by // `outputs`. All variables in the supplied SavedModelBundle are converted to
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 22:31:28 UTC 2018 - 1.9K bytes - Viewed (0) -
tensorflow/cc/saved_model/loader.h
/// RAM. struct SavedModelBundle : public SavedModelBundleInterface { /// A TensorFlow Session does not Close itself on destruction. To avoid /// resource leaks, we explicitly call Close on Sessions that we create. ~SavedModelBundle() override { if (session) { session->Close().IgnoreError(); } } SavedModelBundle() = default;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 05 18:28:37 UTC 2023 - 6K 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; }
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/compiler/mlir/lite/quantization/stablehlo/quantization.cc
return signature_def_map; } // Retrieves the function name -> function alias mapping from the // `SavedModelBundle`. // TODO: b/314124142 - Remove the need for this function. absl::flat_hash_map<std::string, std::string> GetFunctionAliases( const SavedModelBundle& saved_model_bundle) { const protobuf::Map<std::string, std::string>& function_aliases =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 10:49:12 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/saved_model_import.h
// Represents a pair of `mlir::ModuleOp` and `tensorflow::SavedModelBundle`. The // SavedModelBundle complements the imported ModuleOp by providing access to // `tensorflow::Session` which may be useful when reading values from resources // (e.g. `TF::VarHandleOp`s). using ImportedMlirModuleOp = std::pair<OwningOpRef<ModuleOp>, std::unique_ptr<::tensorflow::SavedModelBundle>>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/cc/saved_model/python/loader.clif
from "third_party/tensorflow/cc/saved_model/loader.h": namespace `tensorflow`: class SavedModelBundle:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 04 22:06:37 UTC 2018 - 134 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/stablehlo/quantization_test.cc
WhenPyFunctionLibIsNullptrReturnsInvalidArgumentError) { const absl::StatusOr<std::string> tmp_saved_model_dir = CreateTmpDir(); ASSERT_THAT(tmp_saved_model_dir, IsOk()); // Dummy SavedModelBundle to pass a non-nullptr argument. SavedModelBundle bundle{}; QuantizationConfig config; const absl::StatusOr<mlir::ModuleOp> quantized_module_op = RunQuantization( /*saved_model_bundle=*/&bundle, *tmp_saved_model_dir,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 11 19:29:56 UTC 2024 - 3.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc
MLIRImportOptions options, std::unique_ptr<tensorflow::SavedModelBundle>* saved_model_bundle) { // Create local bundle if no one is provided to use. std::unique_ptr<tensorflow::SavedModelBundle> bundle; if (saved_model_bundle == nullptr) { bundle = std::make_unique<tensorflow::SavedModelBundle>(); } else if (*saved_model_bundle == nullptr) {
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/compiler/mlir/lite/tf_to_tfl_flatbuffer.h
absl::Span<const std::string> extra_tf_opdefs, absl::Span<std::string> exported_names, const GraphImportConfig& specs, bool enable_variable_lifting, mlir::MLIRContext* context, std::unique_ptr<tensorflow::SavedModelBundle>* saved_model_bundle); Status ConvertTFExecutorToStablehloFlatbuffer( mlir::PassManager& pass_manager, mlir::ModuleOp module, bool export_to_mlir, mlir::StatusScopedDiagnosticHandler& statusHandler,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 08:30:24 UTC 2024 - 4.7K bytes - Viewed (0)