TensorFlow 2.0 Beta is available Learn more

tf.data.experimental.TensorStructure

Class TensorStructure

Represents structural information about a tf.Tensor.

Inherits From: Structure

Aliases:

  • Class tf.compat.v1.data.experimental.TensorStructure
  • Class tf.compat.v2.data.experimental.TensorStructure
  • Class tf.data.experimental.TensorStructure

Defined in python/data/util/structure.py.

__init__

__init__(
    dtype,
    shape
)

Methods

__eq__

__eq__(other)

__ne__

__ne__(other)

from_value

@staticmethod
from_value(value)

is_compatible_with

is_compatible_with(other)