Caffe2 - C++ API
A deep learning, cross platform ML framework
int8_resize_nearest_op.cc
1 #include "caffe2/operators/quantized/int8_resize_nearest_op.h"
2 
3 namespace caffe2 {
4 
5 REGISTER_CPU_OPERATOR(Int8ResizeNearest, int8::Int8ResizeNearestOp);
6 
7 // Input: X, output: Y
8 OPERATOR_SCHEMA(Int8ResizeNearest)
9  .NumInputs(1)
10  .NumOutputs(1)
11  .Arg("Y_scale", "Output tensor quantization scale")
12  .Arg("Y_zero_point", "Output tensor quantization offset")
13  .Arg("width_scale", "Scale along width dimension")
14  .Arg("height_scale", "Scale along height dimension")
15  .SetDoc(R"DOC(
16 Resizes the spatial dimensions of the input using nearest neighbor
17 interpolation. The `width_scale` and `height_scale` arguments
18 control the size of the output, which is given by:
19 output_width = floor(input_width * width_scale)
20 output_height = floor(output_height * height_scale)
21 )DOC")
22  .Input(0, "X", "Input Int8 tensor")
23  .Output(0, "Y", "Output Int8 tensor");
24 
25 } // namespace caffe2
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13