W3cubDocs

/TensorFlow Python

tf.contrib.tpu.infeed_dequeue

tf.contrib.tpu.infeed_dequeue(
    dtype,
    shape,
    name=None
)

Defined in tensorflow/contrib/tpu/python/ops/tpu_ops.py.

A placeholder op for a value that will be fed into the computation.

Args:

  • dtype: A tf.DType. The type of elements in the tensor.
  • shape: A tf.TensorShape or list of ints. The shape of the tensor.
  • name: A name for the operation (optional).

Returns:

A Tensor of type dtype. A tensor that will be provided using the infeed mechanism.

Raises:

  • TypeError: If 'dtype` is not a supported infeed type.

© 2018 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/api_docs/python/tf/contrib/tpu/infeed_dequeue