tensorflow::ops::ResizeNearestNeighbor::Attrs

tensorflow::ops::ResizeNearestNeighbor::Attrs

#include <image_ops.h>

Optional attribute setters for ResizeNearestNeighbor.

Summary

Public attributes
align_corners_ = false
bool
Public functions
AlignCorners(bool x)
If true, rescale input by (new_height - 1) / (height - 1), which exactly aligns the 4 corners of images and resized images.

Public attributes

align_corners_

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

Public functions

AlignCorners

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

If true, rescale input by (new_height - 1) / (height - 1), which exactly aligns the 4 corners of images and resized images.

If false, rescale by new_height / height. Treat similarly the width dimension.

Defaults to false

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/struct/tensorflow/ops/resize-nearest-neighbor/attrs.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部