tf.contrib.tpu.infeed_enqueue
Stay organized with collections
Save and categorize content based on your preferences.
An op which feeds a single Tensor value into the computation.
tf.contrib.tpu.infeed_enqueue(
input, shape=[], layout=[], device_ordinal=-1, name=None
)
Args |
input
|
A Tensor .
A tensor that will be provided using the infeed mechanism.
|
shape
|
An optional tf.TensorShape or list of ints . Defaults to [] .
The shape of the tensor.
|
layout
|
An optional list of ints . Defaults to [] .
A vector holding the requested layout in minor-to-major sequence.
If a layout attribute is passed, but its values are all -1, the layout will
be computed by the infeed operation.
|
device_ordinal
|
An optional int . Defaults to -1 .
The TPU device to use. This should be -1 when the Op
is running on a TPU device, and >= 0 when the Op is running on the CPU
device.
|
name
|
A name for the operation (optional).
|
Returns |
The created Operation.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[]]