Class QuantizedResizeBilinear<T extends TNumber>

java.lang.Object
org.tensorflow.op.RawOp
org.tensorflow.op.image.QuantizedResizeBilinear<T>
All Implemented Interfaces:
Op

@Operator(group="image") public final class QuantizedResizeBilinear<T extends TNumber> extends RawOp
Resize quantized images to size using quantized bilinear interpolation. Input images and output images must be quantized types.
  • Field Details

  • Constructor Details

    • QuantizedResizeBilinear

      public QuantizedResizeBilinear(Operation operation)
  • Method Details

    • create

      @Endpoint(describeByClass=true) public static <T extends TNumber> QuantizedResizeBilinear<T> create(Scope scope, Operand<T> images, Operand<TInt32> sizeOutput, Operand<TFloat32> min, Operand<TFloat32> max, QuantizedResizeBilinear.Options... options)
      Factory method to create a class wrapping a new QuantizedResizeBilinear operation.
      Type Parameters:
      T - data type for QuantizedResizeBilinear output and operands
      Parameters:
      scope - current scope
      images - 4-D with shape [batch, height, width, channels].
      sizeOutput - = A 1-D int32 Tensor of 2 elements: new_height, new_width. The new size for the images.
      min - The min value
      max - The max value
      options - carries optional attribute values
      Returns:
      a new instance of QuantizedResizeBilinear
    • alignCorners

      public static QuantizedResizeBilinear.Options alignCorners(Boolean alignCorners)
      Sets the alignCorners option.
      Parameters:
      alignCorners - If true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels. Defaults to false.
      Returns:
      this Options instance.
    • halfPixelCenters

      public static QuantizedResizeBilinear.Options halfPixelCenters(Boolean halfPixelCenters)
      Sets the halfPixelCenters option.
      Parameters:
      halfPixelCenters - the halfPixelCenters option
      Returns:
      this Options instance.
    • resizedImages

      public Output<T> resizedImages()
      Gets resizedImages. 4-D with shape [batch, new_height, new_width, channels].
      Returns:
      resizedImages.
    • outMin

      public Output<TFloat32> outMin()
      Gets outMin.
      Returns:
      outMin.
    • outMax

      public Output<TFloat32> outMax()
      Gets outMax.
      Returns:
      outMax.