@@ -97,24 +97,19 @@ will throw errors.
9797}
9898
9999ONNX_OPERATOR_SCHEMA (Add)
100- .AllowConsumed({{0 , 0 }, {1 , 0 }})
101100 .FillUsing(MathDocGenerator(" addition" ));
102101
103102ONNX_OPERATOR_SCHEMA (Sub)
104- .AllowConsumed({{0 , 0 }, {1 , 0 }})
105103 .FillUsing(MathDocGenerator(" subtraction" ));
106104
107105ONNX_OPERATOR_SCHEMA (Mul)
108- .AllowConsumed({{0 , 0 }, {1 , 0 }})
109106 .FillUsing(MathDocGenerator(" multiplication" ));
110107
111108ONNX_OPERATOR_SCHEMA (Div)
112- .AllowConsumed({{0 , 0 }, {1 , 0 }})
113109 .FillUsing(MathDocGenerator(" division" ));
114110} // namespace ONNX_NAMESPACE
115111
116112ONNX_OPERATOR_SCHEMA (Neg)
117- .AllowConsumed({{0 , 0 }})
118113 .SetDoc(R"DOC(
119114Neg takes one input data (Tensor<T>) and produces one output data
120115(Tensor<T>) where each element flipped sign, y = -x, is applied to
@@ -126,7 +121,6 @@ the tensor elementwise.
126121 " Constrain input and output types to float tensors." );
127122
128123ONNX_OPERATOR_SCHEMA (Abs)
129- .AllowConsumed({{0 , 0 }})
130124 .SetDoc(R"DOC(
131125Absolute takes one input data (Tensor<T>) and produces one output data
132126(Tensor<T>) where the absolute is, y = abs(x), is applied to
@@ -138,7 +132,6 @@ the tensor elementwise.
138132 " Constrain input and output types to float tensors." );
139133
140134ONNX_OPERATOR_SCHEMA (Reciprocal)
141- .AllowConsumed({{0 , 0 }})
142135 .SetDoc(R"DOC(
143136Reciprocal takes one input data (Tensor<T>) and produces one output data
144137(Tensor<T>) where the reciprocal is, y = 1/x, is applied to
@@ -150,7 +143,6 @@ the tensor elementwise.
150143 " Constrain input and output types to float tensors." );
151144
152145ONNX_OPERATOR_SCHEMA (Floor)
153- .AllowConsumed({{0 , 0 }})
154146 .SetDoc(R"DOC(
155147Floor takes one input data (Tensor<T>) and produces one output data
156148(Tensor<T>) where the floor is, y = floor(x), is applied to
@@ -162,7 +154,6 @@ the tensor elementwise.
162154 " Constrain input and output types to float tensors." );
163155
164156ONNX_OPERATOR_SCHEMA (Ceil)
165- .AllowConsumed({{0 , 0 }})
166157 .SetDoc(R"DOC(
167158Ceil takes one input data (Tensor<T>) and produces one output data
168159(Tensor<T>) where the ceil is, y = ceil(x), is applied to
@@ -174,7 +165,6 @@ the tensor elementwise.
174165 " Constrain input and output types to float tensors." );
175166
176167ONNX_OPERATOR_SCHEMA (Sqrt)
177- .AllowConsumed({{0 , 0 }})
178168 .SetDoc(R"DOC(
179169Square root takes one input data (Tensor<T>) and produces one output data
180170(Tensor<T>) where the square root is, y = x^0.5, is applied to
@@ -186,7 +176,6 @@ the tensor elementwise. If x is negative, then it will return NaN.
186176 " Constrain input and output types to float tensors." );
187177
188178ONNX_OPERATOR_SCHEMA (Relu)
189- .AllowConsumed({{0 , 0 }})
190179 .SetDoc(R"DOC(
191180Relu takes one input data (Tensor<T>) and produces one output data
192181(Tensor<T>) where the rectified linear function, y = max(0, x), is applied to
@@ -202,7 +191,6 @@ ONNX_OPERATOR_SCHEMA(LeakyRelu)
202191 " Coefficient of leakage default to 0.01." ,
203192 AttributeProto::FLOAT,
204193 0 .01f )
205- .AllowConsumed({{0 , 0 }})
206194 .SetDoc(R"DOC(
207195LeakyRelu takes input data (Tensor<T>) and an argument alpha, and produces one
208196output data (Tensor<T>) where the function `f(x) = alpha * x for x < 0`,
@@ -214,7 +202,6 @@ output data (Tensor<T>) where the function `f(x) = alpha * x for x < 0`,
214202 " Constrain input and output types to float tensors." );
215203
216204ONNX_OPERATOR_SCHEMA (Selu)
217- .AllowConsumed({{0 , 0 }})
218205 .Attr(" alpha" ,
219206 " Coefficient of SELU default to 1.6732." ,
220207 AttributeProto::FLOAT,
@@ -235,7 +222,6 @@ is applied to the tensor elementwise.
235222 " Constrain input and output types to float tensors." );
236223
237224ONNX_OPERATOR_SCHEMA (Elu)
238- .AllowConsumed({{0 , 0 }})
239225 .Attr(" alpha" ,
240226 " Coefficient of ELU default to 1.0." ,
241227 AttributeProto::FLOAT,
@@ -252,7 +238,6 @@ Elu takes one input data (Tensor<T>) and produces one output data
252238 " Constrain input and output types to float tensors." );
253239
254240ONNX_OPERATOR_SCHEMA (Exp)
255- .AllowConsumed({{0 , 0 }})
256241 .SetDoc(R"DOC(
257242Calculates the exponential of the given input tensor, element-wise.
258243)DOC" )
@@ -266,7 +251,6 @@ Calculates the exponential of the given input tensor, element-wise.
266251 " Constrain input and output types to float tensors." );
267252
268253ONNX_OPERATOR_SCHEMA (Log)
269- .AllowConsumed({{0 , 0 }})
270254 .SetDoc(R"DOC(
271255Calculates the natural log of the given input tensor, element-wise.
272256)DOC" )
@@ -280,7 +264,6 @@ Calculates the natural log of the given input tensor, element-wise.
280264 " Constrain input and output types to float tensors." );
281265
282266ONNX_OPERATOR_SCHEMA (Tanh)
283- .AllowConsumed({{0 , 0 }})
284267 .SetDoc(R"DOC(
285268Calculates the hyperbolic tangent of the given input tensor element-wise.
286269)DOC" )
@@ -312,7 +295,6 @@ is applied to the data tensor elementwise.
312295 " Constrain input and output types to float tensors." );
313296
314297ONNX_OPERATOR_SCHEMA (PRelu)
315- .AllowConsumed({{0 , 0 }})
316298 .SetDoc(R"DOC(
317299
318300PRelu takes input data (Tensor<T>) and slope tensor as input, and produces one
@@ -331,7 +313,6 @@ output data (Tensor<T>) where the function `f(x) = slope * x for x < 0`,
331313 " Constrain input and output types to float tensors." );
332314
333315ONNX_OPERATOR_SCHEMA (Sigmoid)
334- .AllowConsumed({{0 , 0 }})
335316 .SetDoc(R"DOC(
336317Sigmoid takes one input data (Tensor<T>) and produces one output data
337318(Tensor<T>) where the sigmoid function, y = 1 / (1 + exp(-x)), is applied to the
@@ -343,7 +324,6 @@ tensor elementwise.
343324 " Constrain input and output types to float tensors." );
344325
345326ONNX_OPERATOR_SCHEMA (HardSigmoid)
346- .AllowConsumed({{0 , 0 }})
347327 .Attr(" alpha" ,
348328 " Value of alpha default to 0.2" ,
349329 AttributeProto::FLOAT,
@@ -363,7 +343,6 @@ is applied to the tensor elementwise.
363343 " Constrain input and output types to float tensors." );
364344
365345ONNX_OPERATOR_SCHEMA (Max)
366- .AllowConsumed({{0 , 0 }})
367346 .SetDoc(R"DOC(
368347Element-wise max of each of the input tensors. All inputs and outputs must
369348have the same shape and data type.
@@ -374,7 +353,6 @@ have the same shape and data type.
374353 " Constrain input and output types to float tensors." );
375354
376355ONNX_OPERATOR_SCHEMA (Min)
377- .AllowConsumed({{0 , 0 }})
378356 .SetDoc(R"DOC(
379357Element-wise min of each of the input tensors. All inputs and outputs must
380358have the same shape and data type.
@@ -385,7 +363,6 @@ have the same shape and data type.
385363 " Constrain input and output types to float tensors." );
386364
387365ONNX_OPERATOR_SCHEMA (Sum)
388- .AllowConsumed({{0 , 0 }})
389366 .SetDoc(R"DOC(
390367Element-wise sum of each of the input tensors. All inputs and outputs must
391368have the same shape and data type.
@@ -396,7 +373,6 @@ have the same shape and data type.
396373 " Constrain input and output types to float tensors." );
397374
398375ONNX_OPERATOR_SCHEMA (Mean)
399- .AllowConsumed({{0 , 0 }})
400376 .SetDoc(R"DOC(
401377Element-wise mean of each of the input tensors. All inputs and outputs must
402378have the same shape and data type.
@@ -407,7 +383,6 @@ have the same shape and data type.
407383 " Constrain input and output types to float tensors." );
408384
409385ONNX_OPERATOR_SCHEMA (Clip)
410- .AllowConsumed({{0 , 0 }})
411386 .SetDoc(R"DOC(
412387Clip operator limits the given input within an interval. The interval is
413388specified with arguments 'min' and 'max'. They default to
@@ -470,7 +445,6 @@ if attribute transA is non-zero, same for B and transB.
470445 .Input(0 , " A" , " Input tensor A" , " T" )
471446 .Input(1 , " B" , " Input tensor B" , " T" )
472447 .Input(2 , " C" , " Input tensor C, can be inplace." , " T" )
473- .AllowConsumed({{2 , 0 }})
474448 .Output(0 , " Y" , " Output tensor." , " T" )
475449 .TypeConstraint(" T" , { " tensor(float16)" , " tensor(float)" , " tensor(double)" },
476450 " Constrain input and output types to float tensors." )
0 commit comments