@@ -391,22 +391,22 @@ def Tosa_RESIZE_BILINEAR : I32EnumAttrCase<"BILINEAR", 2>;
391
391
392
392
def Tosa_ResizeModeAttr
393
393
: Tosa_I32EnumAttr<"ResizeMode", "Supported resize/upsampling strategies", "resize_mode",
394
- [Tosa_RESIZE_NEAREST_NEIGHBOR, Tosa_RESIZE_BILINEAR]>;
394
+ [Tosa_RESIZE_NEAREST_NEIGHBOR, Tosa_RESIZE_BILINEAR]>;
395
395
396
396
def Tosa_NANPROPAGATION_PROPAGATE : I32EnumAttrCase<"PROPAGATE", 1>;
397
397
def Tosa_NANPROPAGATION_IGNORE : I32EnumAttrCase<"IGNORE", 2>;
398
398
399
399
def Tosa_NanPropagationModeAttr
400
400
: Tosa_I32EnumAttr<"NanPropagationMode", "Supported NaN propagation strategies", "nan_mode",
401
- [Tosa_NANPROPAGATION_PROPAGATE, Tosa_NANPROPAGATION_IGNORE]>;
401
+ [Tosa_NANPROPAGATION_PROPAGATE, Tosa_NANPROPAGATION_IGNORE]>;
402
402
403
403
def Tosa_ROUNDING_SINGLE_ROUND : I32EnumAttrCase<"SINGLE_ROUND", 1>;
404
404
def Tosa_ROUNDING_INEXACT_ROUND : I32EnumAttrCase<"INEXACT_ROUND", 2>;
405
405
def Tosa_ROUNDING_DOUBLE_ROUND : I32EnumAttrCase<"DOUBLE_ROUND", 3>;
406
406
407
407
def Tosa_RoundingModeAttr
408
408
: Tosa_I32EnumAttr<"RoundingMode", "Supported rounding modes", "rounding_mode",
409
- [Tosa_ROUNDING_SINGLE_ROUND, Tosa_ROUNDING_INEXACT_ROUND, Tosa_ROUNDING_DOUBLE_ROUND]>;
409
+ [Tosa_ROUNDING_SINGLE_ROUND, Tosa_ROUNDING_INEXACT_ROUND, Tosa_ROUNDING_DOUBLE_ROUND]>;
410
410
411
411
412
412
//===----------------------------------------------------------------------===//
@@ -472,33 +472,26 @@ class Tosa_ElementwiseOp<string mnemonic, list<Trait> traits = []> :
472
472
ResultsBroadcastableShape,
473
473
TosaElementwiseOperator,
474
474
SameOperandsAndResultRank,
475
- Pure])> {
476
- let assemblyFormat =
477
- "operands attr-dict `:` functional-type(operands, results)";
478
- }
475
+ Pure])> {}
479
476
480
477
class Tosa_ElementwiseUnaryOp<string mnemonic, list<Trait> traits = []> :
481
478
Tosa_ElementwiseOp<mnemonic, !listconcat(traits, [
482
479
SameOperandsAndResultShape,
483
480
SameOperandsAndResultElementType])> {}
484
481
485
482
class Tosa_InferTensorTypeOp<string mnemonic, list<Trait> traits = []>
486
- : Tosa_Op<mnemonic, !listconcat(traits, [InferTensorTypeAdaptor, Pure])> {
487
- let assemblyFormat =
488
- "operands attr-dict `:` functional-type(operands, results)";
489
- }
483
+ : Tosa_Op<mnemonic, !listconcat(traits, [InferTensorTypeAdaptor, Pure])> {}
490
484
491
485
class Tosa_InferShapedTypeOp<string mnemonic, list<Trait> traits = []>
492
- : Tosa_Op<mnemonic, !listconcat(traits, [InferShapedTypeOpAdaptor, Pure])> {
493
- let assemblyFormat =
494
- "operands attr-dict `:` functional-type(operands, results)";
495
- }
486
+ : Tosa_Op<mnemonic, !listconcat(traits, [InferShapedTypeOpAdaptor, Pure])> {}
496
487
497
488
// The "SameVariadicOperandSize" trait allows us to pass optional arguments
498
489
// for multiple zero points in convolution ops.
499
490
class Tosa_ConvOp<string mnemonic, list<Trait> traits = []>
500
491
: Tosa_InferShapedTypeOp<mnemonic, !listconcat(traits,
501
492
[SameVariadicOperandSize])> {
493
+ let assemblyFormat =
494
+ "operands attr-dict `:` functional-type(operands, results)";
502
495
}
503
496
504
497
#endif // TOSA_OP_BASE
0 commit comments