1 #include "caffe2/operators/quantized/int8_resize_nearest_op.h" 5 REGISTER_CPU_OPERATOR(Int8ResizeNearest, int8::Int8ResizeNearestOp);
8 OPERATOR_SCHEMA(Int8ResizeNearest)
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")
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) 22 .Input(0, "X",
"Input Int8 tensor")
23 .Output(0,
"Y",
"Output Int8 tensor");
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...