TensorFlow 2.0 Beta is available Learn more

tff.framework.type_from_tensors

Builds a tff.Type from supplied tensors.

tff.framework.type_from_tensors(tensors)

Defined in python/core/impl/type_utils.py.

Args:

  • tensors: A nested structure of tensors.

Returns:

The nested TensorType structure.