tensorflow::ops::ResizeNearestNeighbor::Attrs

#include <image_ops.h>

Optional attribute setters for ResizeNearestNeighbor.

Summary

Public attributes

align_corners_ = false
bool
half_pixel_centers_ = false
bool

Public functions

AlignCorners(bool x)
TF_MUST_USE_RESULT Attrs
If true, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels.
HalfPixelCenters(bool x)
TF_MUST_USE_RESULT Attrs
Defaults to false.

Public attributes

align_corners_

bool tensorflow::ops::ResizeNearestNeighbor::Attrs::align_corners_ = false

half_pixel_centers_

bool tensorflow::ops::ResizeNearestNeighbor::Attrs::half_pixel_centers_ = false

Public functions

AlignCorners

TF_MUST_USE_RESULT Attrs tensorflow::ops::ResizeNearestNeighbor::Attrs::AlignCorners(
  bool x
)

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.

Defaults to false

HalfPixelCenters

TF_MUST_USE_RESULT Attrs tensorflow::ops::ResizeNearestNeighbor::Attrs::HalfPixelCenters(
  bool x
)

Defaults to false.