@@ -512,6 +512,36 @@ def Torch_AtenEq_TensorOp : Torch_Op<"aten.eq_.Tensor", [
512
512
let assemblyFormat = "$self `,` $other attr-dict `:` type($self) `,` type($other) `->` type($result)";
513
513
}
514
514
515
+ def Torch_AtenGtTensorOp : Torch_Op<"aten.gt.Tensor", [
516
+ AllowsTypeRefinement,
517
+ HasValueSemantics
518
+ ]> {
519
+ let summary = "Generated op for `aten::gt.Tensor : (Tensor, Tensor) -> (Tensor)`";
520
+ let arguments = (ins
521
+ AnyTorchTensorType:$self,
522
+ AnyTorchTensorType:$other
523
+ );
524
+ let results = (outs
525
+ AnyTorchTensorType:$result
526
+ );
527
+ let assemblyFormat = "$self `,` $other attr-dict `:` type($self) `,` type($other) `->` type($result)";
528
+ }
529
+
530
+ def Torch_AtenGt_TensorOp : Torch_Op<"aten.gt_.Tensor", [
531
+ IsTrailingUnderscoreInplaceVariant,
532
+ AllowsTypeRefinement
533
+ ]> {
534
+ let summary = "Generated op for `aten::gt_.Tensor : (Tensor, Tensor) -> (Tensor)`";
535
+ let arguments = (ins
536
+ AnyTorchTensorType:$self,
537
+ AnyTorchTensorType:$other
538
+ );
539
+ let results = (outs
540
+ AnyTorchTensorType:$result
541
+ );
542
+ let assemblyFormat = "$self `,` $other attr-dict `:` type($self) `,` type($other) `->` type($result)";
543
+ }
544
+
515
545
def Torch_AtenNeTensorOp : Torch_Op<"aten.ne.Tensor", [
516
546
AllowsTypeRefinement,
517
547
HasValueSemantics
@@ -1071,22 +1101,6 @@ def Torch_AtenMaximumOp : Torch_Op<"aten.maximum", [
1071
1101
let assemblyFormat = "$self `,` $other attr-dict `:` type($self) `,` type($other) `->` type($result)";
1072
1102
}
1073
1103
1074
- def Torch_AtenWhereSelfOp : Torch_Op<"aten.where.self", [
1075
- AllowsTypeRefinement,
1076
- HasValueSemantics
1077
- ]> {
1078
- let summary = "Generated op for `aten::where.self : (Tensor, Tensor, Tensor) -> (Tensor)`";
1079
- let arguments = (ins
1080
- AnyTorchTensorType:$condition,
1081
- AnyTorchTensorType:$self,
1082
- AnyTorchTensorType:$other
1083
- );
1084
- let results = (outs
1085
- AnyTorchTensorType:$result
1086
- );
1087
- let assemblyFormat = "$condition `,` $self `,` $other attr-dict `:` type($condition) `,` type($self) `,` type($other) `->` type($result)";
1088
- }
1089
-
1090
1104
def Torch_AtenMinimumOp : Torch_Op<"aten.minimum", [
1091
1105
AllowsTypeRefinement,
1092
1106
HasValueSemantics
@@ -1942,6 +1956,23 @@ def Torch_AtenArgmaxOp : Torch_Op<"aten.argmax", [
1942
1956
let assemblyFormat = "$self `,` $dim `,` $keepdim attr-dict `:` type($self) `,` type($dim) `,` type($keepdim) `->` type($result)";
1943
1957
}
1944
1958
1959
+ def Torch_AtenBucketizeTensorOp : Torch_Op<"aten.bucketize.Tensor", [
1960
+ AllowsTypeRefinement,
1961
+ HasValueSemantics
1962
+ ]> {
1963
+ let summary = "Generated op for `aten::bucketize.Tensor : (Tensor, Tensor, bool, bool) -> (Tensor)`";
1964
+ let arguments = (ins
1965
+ AnyTorchTensorType:$self,
1966
+ AnyTorchTensorType:$boundaries,
1967
+ Torch_BoolType:$out_int32,
1968
+ Torch_BoolType:$right
1969
+ );
1970
+ let results = (outs
1971
+ AnyTorchTensorType:$result
1972
+ );
1973
+ let assemblyFormat = "$self `,` $boundaries `,` $out_int32 `,` $right attr-dict `:` type($self) `,` type($boundaries) `,` type($out_int32) `,` type($right) `->` type($result)";
1974
+ }
1975
+
1945
1976
def Torch_AtenContiguousOp : Torch_Op<"aten.contiguous", [
1946
1977
AllowsTypeRefinement
1947
1978
]> {
@@ -2002,6 +2033,25 @@ def Torch_AtenEmbeddingOp : Torch_Op<"aten.embedding", [
2002
2033
let assemblyFormat = "$weight `,` $indices `,` $padding_idx `,` $scale_grad_by_freq `,` $sparse attr-dict `:` type($weight) `,` type($indices) `,` type($padding_idx) `,` type($scale_grad_by_freq) `,` type($sparse) `->` type($result)";
2003
2034
}
2004
2035
2036
+ def Torch_AtenEmptyLikeOp : Torch_Op<"aten.empty_like", [
2037
+ AllowsTypeRefinement,
2038
+ HasValueSemantics
2039
+ ]> {
2040
+ let summary = "Generated op for `aten::empty_like : (Tensor, int?, int?, Device?, bool?, int?) -> (Tensor)`";
2041
+ let arguments = (ins
2042
+ AnyTorchTensorType:$self,
2043
+ TorchOptionalIntType:$dtype,
2044
+ TorchOptionalIntType:$layout,
2045
+ TorchOptionalDeviceType:$device,
2046
+ TorchOptionalBoolType:$pin_memory,
2047
+ TorchOptionalIntType:$memory_format
2048
+ );
2049
+ let results = (outs
2050
+ AnyTorchTensorType:$result
2051
+ );
2052
+ let assemblyFormat = "$self `,` $dtype `,` $layout `,` $device `,` $pin_memory `,` $memory_format attr-dict `:` type($self) `,` type($dtype) `,` type($layout) `,` type($device) `,` type($pin_memory) `,` type($memory_format) `->` type($result)";
2053
+ }
2054
+
2005
2055
def Torch_AtenEmptyMemoryFormatOp : Torch_Op<"aten.empty.memory_format", [
2006
2056
AllowsTypeRefinement,
2007
2057
HasValueSemantics
@@ -2139,6 +2189,20 @@ def Torch_AtenRepeatOp : Torch_Op<"aten.repeat", [
2139
2189
let assemblyFormat = "$self `,` $repeats attr-dict `:` type($self) `,` type($repeats) `->` type($result)";
2140
2190
}
2141
2191
2192
+ def Torch_AtenReshapeOp : Torch_Op<"aten.reshape", [
2193
+ AllowsTypeRefinement
2194
+ ]> {
2195
+ let summary = "Generated op for `aten::reshape : (Tensor, int[]) -> (Tensor)`";
2196
+ let arguments = (ins
2197
+ AnyTorchTensorType:$self,
2198
+ TorchIntListType:$shape
2199
+ );
2200
+ let results = (outs
2201
+ AnyTorchTensorType:$result
2202
+ );
2203
+ let assemblyFormat = "$self `,` $shape attr-dict `:` type($self) `,` type($shape) `->` type($result)";
2204
+ }
2205
+
2142
2206
def Torch_AtenResize_Op : Torch_Op<"aten.resize_", [
2143
2207
AllowsTypeRefinement
2144
2208
]> {
@@ -2312,6 +2376,22 @@ def Torch_AtenViewOp : Torch_Op<"aten.view", [
2312
2376
let assemblyFormat = "$self `,` $size attr-dict `:` type($self) `,` type($size) `->` type($result)";
2313
2377
}
2314
2378
2379
+ def Torch_AtenWhereSelfOp : Torch_Op<"aten.where.self", [
2380
+ AllowsTypeRefinement,
2381
+ HasValueSemantics
2382
+ ]> {
2383
+ let summary = "Generated op for `aten::where.self : (Tensor, Tensor, Tensor) -> (Tensor)`";
2384
+ let arguments = (ins
2385
+ AnyTorchTensorType:$condition,
2386
+ AnyTorchTensorType:$self,
2387
+ AnyTorchTensorType:$other
2388
+ );
2389
+ let results = (outs
2390
+ AnyTorchTensorType:$result
2391
+ );
2392
+ let assemblyFormat = "$condition `,` $self `,` $other attr-dict `:` type($condition) `,` type($self) `,` type($other) `->` type($result)";
2393
+ }
2394
+
2315
2395
def Torch_AtenSliceTensorOp : Torch_Op<"aten.slice.Tensor", [
2316
2396
AllowsTypeRefinement
2317
2397
]> {
0 commit comments