- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for SavedModelBuilder (0.59 sec)
-
tensorflow/cc/saved_model/testdata/generate_saved_models.py
tf_module = module_ctor() if version == 2: options = save_options.SaveOptions(save_debug_info=True) saved_model.save(tf_module, export_path, options=options) else: builder = saved_model.builder.SavedModelBuilder(export_path) builder.add_meta_graph_and_variables(tf_module, ["serve"]) builder.save() if __name__ == "__main__": v2_compat.enable_v2_behavior()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Sep 18 18:06:18 UTC 2023 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py
def _save_function_alias( saved_model_dir: str, tags: Collection[str], function_aliases: Mapping[str, str], ) -> None: """Saves the function alias to the SavedModel. SavedModelBuilder (TF1 saved model saver) does not support saving function aliases, so this function loads the SavedModel proto and adds the `function_aliases` field. Args:
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/compiler/mlir/quantization/tensorflow/python/py_function_lib.py
): # Convert any non-Tensor values from the sample to Tensors. # This conversion is required because the model saved in `model_dir` is # saved using TF1 SavedModelBuilder, which doesn't save the # SavedObjectGraph. func_kwargs = _convert_values_to_tf_tensors(sample) func(**func_kwargs) def _run_graph_for_calibration_eager_mode( model_dir: str,
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/tensorflow/python/integration_test/quantize_model_test_base.py
init_op: Op for initialization. assets_collection: Assets collection. This collection is a list of string tensors. Each tensor contains the asset file names. """ v1_builder = builder.SavedModelBuilder(saved_model_path) sig_def = signature_def_utils_impl.predict_signature_def( inputs=inputs, outputs=outputs ) v1_builder.add_meta_graph_and_variables( sess, tags,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 08:51:46 UTC 2024 - 51.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
inputs=input_map, outputs=output_map ) signature_map = {'main': signature} tags = {tag_constants.SERVING} v1_builder = builder.SavedModelBuilder(self._input_saved_model_path) v1_builder.add_meta_graph_and_variables( sess, tags, signature_def_map=signature_map ) v1_builder.save()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
RELEASE.md
* TFRecordWriter now raises an error if .write() fails. * TPU: More helpful error messages in TPUClusterResolvers. * The legacy_init_op argument to SavedModelBuilder methods for adding MetaGraphs has been deprecated. Please use the equivalent main_op argument instead. As part of this, we now explicitly check for a single
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 730.3K bytes - Viewed (0)