forked from flagos-ai/FlagGems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoperators.yaml
More file actions
6237 lines (6236 loc) · 139 KB
/
Copy pathoperators.yaml
File metadata and controls
6237 lines (6236 loc) · 139 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
ops:
- id: abs
description: |
Computes the absolute value of each element in `input`.
This is a simple wrapper of the existing torch `abs` operator.
for:
- abs
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '1.0'
- id: abs_
description: |
The in-place version of `abs()`, which is a simple wrapper of the Torch `abs` operator.
for:
- abs_
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.2'
- id: absolute
description: |
This is an alias for `abs()` with the low-level operations implemented
by invoking low-level Torch operators.
for:
- absolute
labels:
- aaten
- KernelGen
kind:
- Math
stages:
- beta: '5.0'
- id: acos
description: Returns a new tensor with the arccosine (in radians) of each element in `input`.
for:
- acos
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '5.0'
- id: act_quant_triton
description: This is a fused operator.
for:
- None
labels:
- fused
kind:
- Quantization
stages:
- beta: '5.1'
- id: adaptive_avg_pool3d
description: |
Apply a 3D adaptive average pooling over an input signal composed of several input planes.
for:
- _adaptive_avg_pool3d
labels:
- aten
- nn.functional
- KernelGen
kind:
- NeuralNetwork
stages:
- alpha: '5.0'
- id: adaptive_avg_pool3d_out
description: |
A variant of `_adaptive_avg_pool3d` that assigns the output to the `out` tensor.
for:
- _adaptive_avg_pool3d.out
labels:
- aten
- nn.functional
- KernelGen
kind:
- NeuralNetwork
stages:
- alpha: '5.0'
- id: add
description: |
Add a scalar or tensor to `self` tensor. If both `alpha` and `other` are specified,
each element of `other` is scaled by `alpha` before being used.
for:
- add.Tensor
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '1.0'
cpp: '4.0'
- id: add_
description: The in-place version of `add()`.
for:
- add_.Tensor
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.2'
- id: addcdiv
description: |
Performs the element-wise division of `tensor1` by `tensor2`, multiplies the result
by the scalar `value` and adds it to `input`.
for:
- addcdiv
labels:
- aten
- pointwise
kind:
- LinearAlg
stages:
- stable: '4.0'
- id: addcdiv_out
description: |
A variant of `addcdiv()` that assigns the output to the given `out` parameter..
for:
- addcdiv.out
labels:
- aten
- pointwise
- KernelGen
kind:
- LinearAlg
stages:
- beta: '5.0'
- stable: '5.1'
- id: addcmul
description: |
Performs the element-wise multiplication of `tensor1` by `tensor2`,
multiplies the result by the scalar `value` and adds it to `input`.
for:
- addcmul
labels:
- aten
- pointwise
kind:
- LinearAlg
stages:
- stable: '4.0'
- id: addcmul_out
description: |
A variant of `addcmul` that allows the output to be assigned to `out`.
for:
- addcmul.out
labels:
- aten
- pointwise
- KernelGen
kind:
- LinearAlg
stages:
- alpha: '5.0'
- id: addmm
description: |
Performs a matrix multiplication of the matrices `mat1` and `mat2`.
The matrix `input` is added to the final result.
for:
- addmm
labels:
- aten
kind:
- BLAS
stages:
- stable: '1.0'
cpp: '4.0'
- id: addmm_dtype
description: |
A variant of `addmm` that allows the dtype of the output tensor to be specified.
This is supported only on CUDA and for `torch.float32` given `torch.float16` or `torch.bfloat16` input dtypes.
for:
- addmm.dtype
labels:
- aten
kind:
- BLAS
stages:
- beta: '5.1'
- id: addmm_dtype_out
description: A variant of `addmm_dtype()` that allows the output to be saved to the provided `out` parameter.
for:
- addmm.dtype_out
labels:
- aten
kind:
- BLAS
stages:
- beta: '5.1'
- id: addmm_out
description: |
A variant of `addmm` that assigns to the output to the provided `out` parameter.
for:
- addmm.out
labels:
- aten
kind:
- BLAS
stages:
- stable: '4.0'
- id: addmv
description: |
Performs a matrix-vector product of the matrix `mat` and the vector `vec`.
The vector `input` is added to the final result.
for:
- addmv
labels:
- aten
kind:
- BLAS
stages:
- stable: '4.0'
- id: addmv_out
description: |
Performs a matrix-vector product of the matrix `mat` and the vector `vec`.
The vector `input` is added to the final result.
for:
- addmv.out
labels:
- aten
kind:
- BLAS
stages:
- stable: '4.0'
- id: addr
description: |
Performs the outer-product of vectors `vec1` and `vec2`
and adds it to the matrix `input`.
for:
- addr
labels:
- aten
kind:
- BLAS
stages:
- stable: '4.0'
- id: alias_copy
description: |
Creates a new tensor that shares the same storage data as the original tensor,
but without preserving the original tensor's metadata (like shape or strides)
in a way that links future mutations.
for:
- alias_copy
labels:
- aten
- KernelGen
kind:
- Tensor
stages:
- beta: '5.0'
- id: alias_copy_out
description: A variant of `alias_copy()` that assigns the output to the `out` tensor.
for:
- alias_copy.out
labels:
- aten
- KernelGen
kind:
- Tensor
stages:
- beta: '5.0'
- id: all
description: Tests if all elements in input evaluate to True.
for:
- all
labels:
- aten
- Reduction
kind:
- Math
stages:
- stable: '2.0'
- id: all_dim
description: |
For each row of `input` in the given dimension `dim`, returns True if all elements
in the row evaluate to True and False otherwise.
for:
- all.dim
labels:
- aten
- Reduction
kind:
- Math
stages:
- stable: '2.0'
- id: all_dims
description: A variant of `all`.
for:
- all.dims
labels:
- aten
- Reduction
kind:
- Math
stages:
- stable: '2.0'
- id: allclose
description: |
This function checks if `input` and `other` satisfy a condition specified via
`atol` and `rtol` elementwise, for all elements of `input` and `other`.
for:
- allclose
labels:
- aten
kind:
- Math
stages:
- stable: '2.1'
- id: amax
description: Returns the maximum value of each slice of the `input` tensor in the given dimension(s) `dim`.
for:
- amax
labels:
- aten
- Reduction
kind:
- LinearAlg
stages:
- stable: '2.0'
- id: aminmax
description: |
Computes the minimum and maximum values of the `input` tensor.
for:
- aminmax
labels:
- aten
kind:
- Tensor
stages:
- beta: '5.1'
- id: angle
description: Computes the element-wise angle (in radians) of the given `input` tensor.
for:
- angle
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '3.0'
- id: any
description: Tests if any element in `input` evaluates to True.
for:
- any
labels:
- aten
- Reduction
kind:
- Math
stages:
- stable: '2.0'
- id: any_dim
description: For each row of `input` in the given dimension `dim`, returns True if any element in the row evaluate to True and False otherwise.
for:
- any.dim
labels:
- aten
- Reduction
kind:
- Math
stages:
- stable: '2.0'
- id: any_dims
description: |
For each row of `input` in the given dimensions in `dims`, returns True if any element in the row evaluate to True and False otherwise.
The `dims` contains tuple of ints indicating the dimensions to reduce.
for:
- any.dims
labels:
- aten
- Reduction
kind:
- Math
stages:
- stable: '2.0'
- id: apply_repetition_penalties
description: |
Modifies logit tensors in place to penalize tokens that have already appeared in the generated sequence.
for:
- _C.apply_repetition_penalties_
labels:
- fused
- vLLM
kind:
- NeuralNetwork
stages:
- stable: '5.0'
- id: apply_rotary_pos_emb
description: |
A method to incorporate positional information into the Transformer architecture.
Rotary Positional Embedding (RoPE) applies position-dependent rotation to the query (Q)
and key (K) vectors before computing the attention score.
for:
- apply_rotary_pos_emb
labels:
- fused
kind:
- NeuralNetwork
stages:
- stable: '2.0'
- id: arange
description: |
Returns a 1-D tensor of size `ceiling((end−start)/step)` with values from the interval `[start, end)`
taken with common difference `step` beginning from start.
for:
- arange
labels:
- aten
kind:
- Tensor
stages:
- stable: '2.1'
- id: arange_start
description: A variant of `arange`, with `start` and/or `step` specified.
for:
- arange.start
labels:
- aten
kind:
- tensor
stages:
- stable: '2.1'
- id: arange_start_step
description: A variant of `arange`, with `start` and/or `step` specified.
for:
- arange_start_step
labels:
- aten
kind:
- tensor
stages:
- stable: '2.1'
- id: arcsinh
description: Performs an element-wise inverse hyperbolic sine computation on the given tensor.
for:
- arcsinh
labels:
- aten
- KernelGen
kind:
- Math
stages:
- beta: '5.0'
- id: arcsinh_
description: The in-place version of `arcsinh()`.
for:
- arcsinh_
labels:
- aten
- KernelGen
kind:
- Math
stages:
- beta: '5.0'
- id: arcsinh_out
description: A variant of `arcsinh` that allows the output to be assigned to the `out` tensor.
for:
- arcsinh.out
labels:
- aten
- KernelGen
kind:
- Math
stages:
- beta: '5.0'
- id: arctanh_
description: |
Computes the element-wise inverse hyperbolic tangent of a given input tensor.
This is an in-place version.
for:
- arctanh_
labels:
- aten
- KernelGen
kind:
- Math
stages:
- beta: '5.0'
- id: argmax
description: Returns the indices of the maximum value of all elements in the `input` tensor.
for:
- argmax
labels:
- aten
- Reduction
kind:
- LinearAlg
stages:
- stable: '2.0'
cpp: '4.0'
- id: argmin
description: Returns the indices of the minimum value(s) of the flattened tensor or along a dimension.
for:
- argmin
labels:
- aten
- Reduction
kind:
- LinearAlg
stages:
- stable: '2.2'
- id: asinh
description: Returns a new tensor with the inverse hyperbolic sine of the elements of input.
for:
- asinh
labels:
- aten
- KernelGen
kind:
- Math
stages:
- beta: '5.1'
- id: asinh_
description: Computes the inverse hyperbolic sine for each element of a tensor in-place.
for:
- asinh_
labels:
- aten
- KernelGen
kind:
- Math
stages:
- beta: '5.0'
- id: assert_async
description: |
A utility used to perform data-dependent assertions on GPU tensors
without triggering an immediate, performance-heavy GPU-to-CPU synchronization.
for:
- _assert_async
labels:
- utility
kind:
- Tensor
stages:
- stable: '5.1'
- id: atan
description: Returns a new tensor with the arctangent of the elements (in radians) in the `input` tensor.
for:
- atan
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '4.0'
- id: atan_
description: The in-place version of `atan()`.
for:
- atan_
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '4.0'
- id: atan2
description: |
Computes the element-wise arc tangent of `input/other(y/x)`,
returning angles in radians between `-PI` and `PI`.
for:
- atan2
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '5.1'
- id: atan2_out
description: |
A variant of `atan2` that allows the output to be saved into `out`.
for:
- atan2.out
labels:
- aten
- pointwise
kind:
- Math
stages:
- beta: '5.1'
- id: avg_pool2d
description: |
Applies 2D average-pooling operation in `kH \mul kW` regions by step size `sH \mul sW` steps.
The number of output features is equal to the number of input planes.
This is for the forward case.
for:
- avg_pool2d
labels:
- nn.functional
kind:
- NeuralNetwork
stages:
- stable: '4.1'
- id: avg_pool2d_backward
description: The backward version of `avg_pool2d()`.
for:
- avg_pool2d_backward
labels:
- aten
kind:
- NeuralNetwork
stages:
- stable: '4.1'
- id: avg_pool3d
description: |
Applies 3D average-pooling operation in `kD \times kH \times kW` regions by step size
`sD \times sH \times sW` steps.
for:
- avg_pool3d
labels:
- aten
kind:
- NeuralNetwork
stages:
- beta: '5.1'
- id: avg_pool3d_backward
description: This is the backward version of `avg_pool3d()`.
for:
- avg_pool3d_backward
labels:
- aten
kind:
- NeuralNetwork
stages:
- alpha: '5.1'
- id: baddbmm
description: |
Performs a batch matrix-matrix product of matrices in `batch1` and `batch2`.
`input` is added to the final result. `batch1` and `batch2` must be 3-D tensors
each containing the same number of matrices.
for:
- baddbmm
labels:
- aten
kind:
- BLAS
stages:
- stable: '4.1'
- id: baddbmm.out
description: This is a variant of `baddbmm()`.
for:
- baddbmm.out
labels:
- aten
kind:
- BLAS
stages:
- beta: '5.1'
- id: batch_norm
description: An internal operator used for implementing the `BatchNorm` functionality.
for:
- native_batch_norm
labels:
- aten
kind:
- NeuralNetwork
stages:
- stable: '3.0'
- id: batch_norm_backward
description: The backward version of `batch_norm()`.
for:
- native_batch_norm_backward
labels:
- aten
kind:
- NeuralNetwork
stages:
- stable: '3.0'
- id: bernoulli_
description: Draws binary random numbers (0 or 1) from a Bernoulli distribution.
for:
- bernoulli_.float
labels:
- aten
kind:
- Tensor
stages:
- beta: '5.1'
- id: bincount
description: Count the frequency of each value in an array of non-negative integers.
for:
- bincount
labels:
- aten
- pointwise
kind:
- Reduction
stages:
- stable: '5.0'
- id: bitwise_and_scalar
description: Computes the bitwise AND of `input` and `other` scalar.
for:
- bitwise_and.Scalar
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.0'
- id: bitwise_and_scalar_
description: The in-place, scalar version of `bitwise_and()`.
for:
- bitwise_and_.Scalar
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.2'
- id: bitwise_and_scalar_tensor
description: A variant of `bitwise_and()`.
for:
- bitwise_and.Scalar_Tensor
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.0'
- id: bitwise_and_tensor
description: The Tensor method version of `bitwise_and()`.
for:
- bitwise_and.Tensor
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.0'
- id: bitwise_and_tensor_
description: The in-place, Tensor method version of `bitwise_and()`.
for:
- bitwise_and_.Tensor
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.2'
- id: bitwise_left_shift
description: Computes the left arithmetic shift of `input` by `other` bits.
for:
- bitwise_left_shift
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '4.0'
- id: bitwise_not
description: Computes the bitwise NOT of the given `input` tensor.
for:
- bitwise_not
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.0'
- id: bitwise_not_
description: The in-place version of `bitwise_not()`.
for:
- bitwise_not_
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.2'
- id: bitwise_or_scalar
description: Computes the bitwise OR of scalars `input` and `other`.
for:
- bitwise_or.Scalar
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.0'
- id: bitwise_or_scalar_
description: The in-place version of `bitwise_or_scalar`.
for:
- bitwise_or_.Scalar
- pointwise
labels:
- aten
kind:
- Math
stages:
- stable: '2.2'
- id: bitwise_or_scalar_tensor
description: Computes the bitwise OR of `input` and `other`.
for:
- bitwise_or.Scalar_Tensor
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.0'
- id: bitwise_or_tensor
description: Computes the bitwise OR of `input` and `other`, this is the Tensor method variant.
for:
- bitwise_or.Tensor
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.0'
- id: bitwise_or_tensor_
description: The in-place version of `bitwise_or_tensor()`.
for:
- bitwise_or_.Tensor
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.2'
- id: bitwise_right_shift
description: Computes the right arithmetic shift of `input` by `other` bits.
for:
- bitwise_right_shift
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '4.0'
- id: bmm
description: Performs a batch matrix-matrix product of matrices stored in `input` and `mat2`.
for:
- bmm
labels:
- aten
kind:
- BLAS
stages:
- stable: '1.0'
cpp: '4.0'
- id: bmm_out
description: |
Performs a batch matrix-matrix product of matrices stored in `input` and `mat2`.
This is a variant of `bmm` with `out` specified.
for:
- bmm.out
labels:
- aten
kind:
- BLAS
stages:
- stable: '5.0'
cpp: '4.0'
- id: bucket_sort_topk
description: A wrapper of the TLE version and the Triton version bucket-sort topk operation.
for:
- None
labels:
- fused
- DSA
kind:
- NeuralNetwork
stages:
- beta: '5.1'
- id: cat
description: Concatenates the given sequence of tensors in tensors in the given dimension.
for:
- cat
labels:
- aten
kind:
- Tensor
stages:
- stable: '2.2'
cpp: '4.0'
- id: cat_out
description: A variant of `cat` that assigns the result to the provided `out` parameter.
for:
- cat.out
labels:
- aten
kind:
- Tensor
stages:
- stable: '2.2'
cpp: '4.0'
- id: ceil
description: |
Returns a new tensor with the ceil of the elements of `input`, the smallest integer greater than
or equal to each element.
for:
- ceil
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '5.0'
- id: ceil_
description: The in-place version of `ceil()`.
for:
- ceil_
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '5.0'
- id: ceil_out
description: A variant of `ceil()` with `out` specified.
for:
- ceil.out
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '5.0'
- id: celu
description: |
Applies the quantized CELU (Continuously Differentiable Exponential Linear Unit)
activation function element-wise.
for:
- celu
labels:
- aten
- nn.functional
- pointwise
kind:
- NeuralNetwork
stages:
- stable: '4.0'
- id: celu_
description: The in-place version of `celu()`.
for:
- celu_
labels:
- aten
- nn.functional
- pointwise
kind:
- NeuralNetwork
stages:
- stable: '4.0'
- id: chunk_gated_delta_rule_fwd
description: |
The forward case for `ChunkGatedDeltaRuleFunction` with Flash Linear Attention (FLA).
for:
- chunk_gated_delta_rule_fwd
labels:
- fused
- FLA
kind:
- Attention
stages:
- alpha: '5.0'
- id: clamp
description: Clamps all elements in `input` into the range `[min, max]`.
for:
- clamp
labels:
- aten
- pointwise
kind:
- Math
stages:
- stable: '2.0'
- id: clamp_
description: The in-place version of `clamp()`.
for: