dòng chảy :: hoạt động :: Thay đổi kích thướcNearestNeighbor
#include <image_ops.h>
Thay đổi kích thước images
thành size
bằng cách sử dụng phép nội suy lân cận gần nhất.
Tóm lược
Tranh luận:
- phạm vi: Một đối tượng Phạm vi
- hình ảnh: 4-D với hình dạng
[batch, height, width, channels]
. - size: = A 1-D int32 Tensor của 2 phần tử:
new_height, new_width
. Kích thước mới cho hình ảnh.
Các thuộc tính tùy chọn (xem Phần Attrs
):
- align_corners: Nếu đúng, tâm của 4 pixel góc của các tensors đầu vào và đầu ra được căn chỉnh, bảo toàn các giá trị tại các pixel góc. Giá trị mặc định là false.
Lợi nhuận:
-
Output
: 4-D với shape[batch, new_height, new_width, channels]
.
Người xây dựng và Người phá hủy | |
---|---|
ResizeNearestNeighbor (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size) | |
ResizeNearestNeighbor (const :: tensorflow::Scope & scope, :: tensorflow::Input images, :: tensorflow::Input size, const ResizeNearestNeighbor::Attrs & attrs) |
Thuộc tính công khai | |
---|---|
operation | |
resized_images |
Chức năng công cộng | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Các chức năng tĩnh công khai | |
---|---|
AlignCorners (bool x) | |
HalfPixelCenters (bool x) |
Cấu trúc | |
---|---|
tensorflow :: ops :: ResizeNearestNeighbor :: Attrs | Bộ thiết lập thuộc tính tùy chọn cho ResizeNearestNeighbor . |
Thuộc tính công khai
hoạt động
Operation operation
resize_images
::tensorflow::Output resized_images
Chức năng công cộng
Thay đổi kích thướcNearestNeighbor
ResizeNearestNeighbor( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size )
Thay đổi kích thướcNearestNeighbor
ResizeNearestNeighbor( const ::tensorflow::Scope & scope, ::tensorflow::Input images, ::tensorflow::Input size, const ResizeNearestNeighbor::Attrs & attrs )
nút
::tensorflow::Node * node() const
toán tử :: tensorflow :: Đầu vào
operator::tensorflow::Input() const
toán tử :: tensorflow :: Đầu ra
operator::tensorflow::Output() const
Các chức năng tĩnh công khai
Căn chỉnh
Attrs AlignCorners( bool x )
HalfPixelCenters
Attrs HalfPixelCenters( bool x )