1 #include "caffe2/operators/quantized/int8_slice_op.h" 5 REGISTER_CPU_OPERATOR(Int8Slice, int8::Int8SliceOp);
7 OPERATOR_SCHEMA(Int8Slice)
11 Produces a slice of the input Int8 tensor. Currently, only slicing in a single 12 dimension is supported. 13 Slices are passed as 2 1D vectors or as two keyword argument lists with starting 14 and end indices for each dimension of the input `data` tensor. If a negative 15 value is passed for any of the start or end indices, it represents the number of 16 elements before the end of that dimension. End indices are non-inclusive unless 17 negative (end index -1 means up to and including the last element). 34 .Input(0, "data",
"Int8 Tensor of data to extract slices from.")
35 .Input(1,
"starts",
"1D tensor: start-indices for each dimension of data.")
36 .Input(2,
"ends",
"1D tensor: end-indices for each dimension of data.")
37 .Arg(
"Y_scale",
"Output tensor quantization scale")
38 .Arg(
"Y_zero_point",
"Output tensor quantization offset")
39 .Arg(
"starts",
"List of starting indices")
40 .Arg(
"ends",
"List of ending indices")
41 .Output(0,
"output",
"Sliced Int8 data tensor.")
42 .InheritOnnxSchema(
"Slice");
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...