8 ONNX_PYTORCH_OPERATOR_SET_SCHEMA(
9 SparseLengthsSumFused8BitRowwise,
12 .SetDoc(
"Mirror Caffe2 SparseLengthsSumFused8BitRowwise operator")
13 .Input(0,
"DATA",
"data tensor",
"T1")
14 .Input(1,
"INDICES",
"indices tensor",
"T2")
15 .Input(2,
"LENGTHS",
"lengths tensor",
"T2")
16 .Output(0,
"output",
"Output tensor",
"T2")
20 "Constrain input data to uint8 tensors.")
31 "Constrain index and length to integral tensors."));
33 ONNX_PYTORCH_OPERATOR_SET_SCHEMA(
37 .SetDoc(
"Mirror Caffe2 SparseLengthsSum operator")
38 .Input(0,
"DATA",
"data tensor",
"T1")
39 .Input(1,
"INDICES",
"indices tensor",
"T2")
40 .Input(2,
"LENGTHS",
"lengths tensor",
"T2")
41 .Output(0,
"output",
"Output tensor",
"T1")
44 {
"tensor(float16)",
"tensor(float)",
"tensor(double)"},
45 "Constrain input and output types to float tensors.")
56 "Constrain index and length to integral tensors."));
58 ONNX_PYTORCH_OPERATOR_SET_SCHEMA(
59 SparseLengthsWeightedSum,
62 .SetDoc(
"Mirror Caffe2 SparseLengthsWeightedSum operator")
63 .Input(0,
"DATA",
"data tensor",
"T1")
64 .Input(1,
"WEIGHTS",
"data tensor",
"T1")
65 .Input(2,
"INDICES",
"indices tensor",
"T2")
66 .Input(3,
"LENGTHS",
"lengths tensor",
"T2")
67 .Output(0,
"output",
"Output tensor",
"T1")
70 {
"tensor(float16)",
"tensor(float)",
"tensor(double)"},
71 "Constrain input and output types to float tensors.")
82 "Constrain index and length to integral tensors."));
84 ONNX_PYTORCH_OPERATOR_SET_SCHEMA(
88 .SetDoc(
"Mirror Caffe2 BatchGather operator")
89 .Input(0,
"DATA",
"data tensor",
"T1")
90 .Input(1,
"INDICES",
"indices tensor",
"T2")
91 .Output(0,
"output",
"Output tensor",
"T1")
94 {
"tensor(float16)",
"tensor(float)",
"tensor(double)"},
95 "Constrain input and output types to float tensors.")
106 "Constrain index and length to integral tensors."));
108 ONNX_PYTORCH_OPERATOR_SET_SCHEMA(
112 .SetDoc(
"Mirror Caffe2 DotProduct operator")
113 .Input(0,
"X",
"Input 1 tensor",
"T")
114 .Input(1,
"Y",
"Input 2 tensor",
"T")
115 .Output(0,
"Z",
"Output tensor",
"T")
118 {
"tensor(float16)",
"tensor(float)",
"tensor(double)"},
119 "Constrain input and output types to float tensors."));
121 ONNX_PYTORCH_OPERATOR_SET_SCHEMA(
125 .SetDoc(
"Mirror Caffe2 FCTransposed operator")
126 .Input(0,
"X",
"Input tensor",
"T")
127 .Input(1,
"W",
"Weight tensor",
"T")
128 .Input(2,
"B",
"Bias tensor",
"T")
129 .Output(0,
"Z",
"Output tensor",
"T")
132 {
"tensor(float16)",
"tensor(float)",
"tensor(double)"},
133 "Constrain input and output types to float tensors."));
135 ONNX_PYTORCH_OPERATOR_SET_SCHEMA(
139 .SetDoc(
"Mirror Caffe2 BatchMatMul operator")
140 .Input(0,
"X",
"tensor of shape (dim0, dim1 ... M, K)",
"T")
141 .Input(1,
"Y",
"tensor of shpae (dim0, dim2 ... K, N)",
"T")
142 .Output(0,
"Z",
"tensor of shape (dim0, dim1 ... M, N)",
"T")
145 {
"tensor(float16)",
"tensor(float)",
"tensor(double)"},
146 "Constrain input and output types to float tensors."));
148 ONNX_PYTORCH_OPERATOR_SET_SCHEMA(
152 .SetDoc(
"Mirror Caffe2 ExpandDims operator")
153 .Input(0,
"X",
"Input tensor",
"T")
154 .Output(0,
"Y",
"Output tensor",
"T")
157 {
"tensor(float16)",
"tensor(float)",
"tensor(double)"},
158 "Constrain input and output types to float tensors."));