Google I / Oが5月18〜20日に戻ってきます。スペースを予約してスケジュールを作成する今すぐ登録する

Type specification for

Inherits From: TypeSpec

See tf.TypeSpec for more information about TensorFlow type specifications.

dataset =
DatasetSpec(TensorSpec(shape=(), dtype=tf.int64, name=None), TensorShape([]))

element_spec The inner element spec.
value_type The Python type for values that are compatible with this TypeSpec.

In particular, all values that are compatible with this TypeSpec must be an instance of this type.



View source

Creates a DatasetSpec for the given value.


View source

Returns true if spec_or_value is compatible with this TypeSpec.


View source

Returns the most specific TypeSpec compatible with self and other.

other A TypeSpec.

ValueError If there is no TypeSpec that is compatible with both self and other.


View source

Return self==value.


View source

Return self!=value.