tf.contrib.autograph.set_element_type
Indicates that the entity is expected hold items of specified type/shape.
tf.contrib.autograph.set_element_type( entity, dtype, shape=UNSPECIFIED )
The staged TensorFlow ops will reflect and assert this data type. Ignored otherwise.
Args | |
---|---|
entity | The entity to annotate. |
dtype | TensorFlow dtype value to assert for entity. |
shape | Optional shape to assert for entity. |
© 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/r1.15/api_docs/python/tf/contrib/autograph/set_element_type