W3cubDocs

/TensorFlow 2.3

tf.compat.v1.saved_model.get_tensor_from_tensor_info

Returns the Tensor or CompositeTensor described by a TensorInfo proto. (deprecated)

Args
tensor_info A TensorInfo proto describing a Tensor or SparseTensor or CompositeTensor.
graph The tf.Graph in which tensors are looked up. If None, the current default graph is used.
import_scope If not None, names in tensor_info are prefixed with this string before lookup.
Returns
The Tensor or SparseTensor or CompositeTensor in graph described by tensor_info.
Raises
KeyError If tensor_info does not correspond to a tensor in graph.
ValueError If tensor_info is malformed.

© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/compat/v1/saved_model/get_tensor_from_tensor_info