Class InfeedEnqueue
java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.tpu.InfeedEnqueue
- All Implemented Interfaces:
Op
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of this op, as known by TensorFlow core engine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic InfeedEnqueuecreate(Scope scope, Operand<? extends TType> input, InfeedEnqueue.Options... options) Factory method to create a class wrapping a new InfeedEnqueue operation.static InfeedEnqueue.OptionsdeviceOrdinal(Long deviceOrdinal) Sets the deviceOrdinal option.static InfeedEnqueue.OptionsSets the layout option.static InfeedEnqueue.OptionsSets the layout option.static InfeedEnqueue.OptionsSets the shape option.Methods inherited from interface Op
envModifier and TypeMethodDescriptiondefault ExecutionEnvironmentenv()Return the execution environment this op was created in.
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
InfeedEnqueue
-
-
Method Details
-
create
@Endpoint(describeByClass=true) public static InfeedEnqueue create(Scope scope, Operand<? extends TType> input, InfeedEnqueue.Options... options) Factory method to create a class wrapping a new InfeedEnqueue operation.- Parameters:
scope- current scopeinput- A tensor that will be provided using the infeed mechanism.options- carries optional attribute values- Returns:
- a new instance of InfeedEnqueue
-
shape
Sets the shape option.- Parameters:
shape- The shape of the tensor.- Returns:
- this Options instance.
-
layout
Sets the layout option.- Parameters:
layout- 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.- Returns:
- this Options instance.
-
layout
Sets the layout option.- Parameters:
layout- 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.- Returns:
- this Options instance.
-
deviceOrdinal
Sets the deviceOrdinal option.- Parameters:
deviceOrdinal- 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.- Returns:
- this Options instance.
-