Class XlaHostCompute
java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.xla.XlaHostCompute
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classOptional attributes forXlaHostCompute -
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 XlaHostCompute.OptionscostEstimateNs(Long costEstimateNs) Sets the costEstimateNs option.static XlaHostComputecreate(Scope scope, Iterable<Operand<?>> inputs, List<Class<? extends TType>> Toutputs, List<String> ancestors, List<Shape> shapes, ConcreteFunction shapeInferenceGraph, String key, XlaHostCompute.Options... options) Factory method to create a class wrapping a new XlaHostCompute operation.iterator()outputs()Gets outputs.static XlaHostCompute.OptionsSets the recvKey option.static XlaHostCompute.OptionsSets the sendKey option.static XlaHostCompute.OptionsSets the tpuCore option.Methods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
OP_NAME
The name of this op, as known by TensorFlow core engine- See Also:
-
-
Constructor Details
-
XlaHostCompute
-
-
Method Details
-
create
@Endpoint(describeByClass=true) public static XlaHostCompute create(Scope scope, Iterable<Operand<?>> inputs, List<Class<? extends TType>> Toutputs, List<String> ancestors, List<Shape> shapes, ConcreteFunction shapeInferenceGraph, String key, XlaHostCompute.Options... options) Factory method to create a class wrapping a new XlaHostCompute operation.- Parameters:
scope- current scopeinputs- A list of tensors that will be sent to the host.Toutputs- The element types of each element inoutputs.ancestors- A list of names of HostCompute computations that must be sequenced before this computation.shapes- If shape_inference_graph is empty, a list of the shapes ofoutputs.shapeInferenceGraph- If non-empty, a serialized GraphDef representing a graph that must be analyzed at compile time to determine the shapes of the outputs.key- A unique identifier for this region used to match up host transfers.options- carries optional attribute values- Returns:
- a new instance of XlaHostCompute
-
sendKey
Sets the sendKey option.- Parameters:
sendKey- the sendKey option- Returns:
- this Options instance.
-
recvKey
Sets the recvKey option.- Parameters:
recvKey- the recvKey option- Returns:
- this Options instance.
-
costEstimateNs
Sets the costEstimateNs option.- Parameters:
costEstimateNs- Estimated duration of the host computation in nanoseconds.- Returns:
- this Options instance.
-
tpuCore
Sets the tpuCore option.- Parameters:
tpuCore- Default core to use for host to device transfers.- Returns:
- this Options instance.
-
outputs
-
iterator
-