Class PrelinearizeTuple

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.tpu.PrelinearizeTuple
All Implemented Interfaces:
Shaped, Op, Operand<TType>

@Operator(group="tpu") public final class PrelinearizeTuple extends RawOp implements Operand<TType>
An op which linearizes multiple Tensor values to an opaque variant tensor.
  • Field Details

  • Constructor Details

    • PrelinearizeTuple

      public PrelinearizeTuple(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static PrelinearizeTuple create(Scope scope, Iterable<Operand<?>> inputs, List<Shape> shapes, PrelinearizeTuple.Options... options)
      Factory method to create a class wrapping a new PrelinearizeTuple operation.
      Parameters:
      scope - current scope
      inputs - A list of tensors that will be provided using the infeed mechanism.
      shapes - The shapes of each tensor in inputs.
      options - carries optional attribute values
      Returns:
      a new instance of PrelinearizeTuple
    • layouts

      public static PrelinearizeTuple.Options layouts(List<Long> layouts)
      Sets the layouts option.
      Parameters:
      layouts - A vector holding the requested layout in minor-to-major sequence for all the tuple shapes in the order the shapes appear in the "shapes" input. The layout elements for a sub-shape can be set to -1 in which case the corresponding layout will be computed by the infeed operation.
      Returns:
      this Options instance.
    • layouts

      public static PrelinearizeTuple.Options layouts(Long... layouts)
      Sets the layouts option.
      Parameters:
      layouts - A vector holding the requested layout in minor-to-major sequence for all the tuple shapes in the order the shapes appear in the "shapes" input. The layout elements for a sub-shape can be set to -1 in which case the corresponding layout will be computed by the infeed operation.
      Returns:
      this Options instance.
    • output

      public Output<? extends TType> output()
      Gets output.
      Returns:
      output.
    • asOutput

      public Output<TType> asOutput()
      Description copied from interface: Operand
      Returns the symbolic handle of the tensor.

      Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.

      Specified by:
      asOutput in interface Operand<TType>
      See Also: