Commit 7073781
authored
[TORCH] Add support for fix Op (#4195)
- Added the support for fix Op
- Since this is an alias for torch.trunc
- Added the e2e test
This implementation addresses and closes
#4193
---------
Signed-off-by: sharavana20 <[email protected]>1 parent 997251d commit 7073781
File tree
8 files changed
+128
-0
lines changed- include/torch-mlir/Dialect/Torch/IR
- lib/Dialect/Torch/Transforms
- projects/pt1
- e2e_testing
- python
- torch_mlir_e2e_test/test_suite
- torch_mlir/jit_ir_importer/build_tools
8 files changed
+128
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4608 | 4608 | | |
4609 | 4609 | | |
4610 | 4610 | | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
| 4620 | + | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
| 4637 | + | |
| 4638 | + | |
| 4639 | + | |
| 4640 | + | |
| 4641 | + | |
| 4642 | + | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
| 4647 | + | |
| 4648 | + | |
| 4649 | + | |
| 4650 | + | |
| 4651 | + | |
| 4652 | + | |
| 4653 | + | |
| 4654 | + | |
| 4655 | + | |
4611 | 4656 | | |
4612 | 4657 | | |
4613 | 4658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6710 | 6710 | | |
6711 | 6711 | | |
6712 | 6712 | | |
| 6713 | + | |
| 6714 | + | |
| 6715 | + | |
| 6716 | + | |
6713 | 6717 | | |
6714 | 6718 | | |
6715 | 6719 | | |
| |||
12357 | 12361 | | |
12358 | 12362 | | |
12359 | 12363 | | |
| 12364 | + | |
| 12365 | + | |
| 12366 | + | |
| 12367 | + | |
12360 | 12368 | | |
12361 | 12369 | | |
12362 | 12370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8780 | 8780 | | |
8781 | 8781 | | |
8782 | 8782 | | |
| 8783 | + | |
| 8784 | + | |
| 8785 | + | |
| 8786 | + | |
| 8787 | + | |
| 8788 | + | |
| 8789 | + | |
| 8790 | + | |
| 8791 | + | |
| 8792 | + | |
| 8793 | + | |
| 8794 | + | |
| 8795 | + | |
8783 | 8796 | | |
8784 | 8797 | | |
8785 | 8798 | | |
| |||
12085 | 12098 | | |
12086 | 12099 | | |
12087 | 12100 | | |
| 12101 | + | |
12088 | 12102 | | |
12089 | 12103 | | |
12090 | 12104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| 553 | + | |
553 | 554 | | |
554 | 555 | | |
555 | 556 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
| 1697 | + | |
| 1698 | + | |
1697 | 1699 | | |
1698 | 1700 | | |
1699 | 1701 | | |
| |||
2049 | 2051 | | |
2050 | 2052 | | |
2051 | 2053 | | |
| 2054 | + | |
| 2055 | + | |
2052 | 2056 | | |
2053 | 2057 | | |
2054 | 2058 | | |
| |||
2900 | 2904 | | |
2901 | 2905 | | |
2902 | 2906 | | |
| 2907 | + | |
| 2908 | + | |
2903 | 2909 | | |
2904 | 2910 | | |
2905 | 2911 | | |
| |||
4356 | 4362 | | |
4357 | 4363 | | |
4358 | 4364 | | |
| 4365 | + | |
| 4366 | + | |
4359 | 4367 | | |
4360 | 4368 | | |
4361 | 4369 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
322 | 325 | | |
323 | 326 | | |
324 | 327 | | |
| |||
3108 | 3111 | | |
3109 | 3112 | | |
3110 | 3113 | | |
| 3114 | + | |
| 3115 | + | |
| 3116 | + | |
| 3117 | + | |
| 3118 | + | |
3111 | 3119 | | |
3112 | 3120 | | |
3113 | 3121 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
452 | 452 | | |
453 | 453 | | |
454 | 454 | | |
| 455 | + | |
455 | 456 | | |
456 | 457 | | |
457 | 458 | | |
| |||
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2900 | 2900 | | |
2901 | 2901 | | |
2902 | 2902 | | |
| 2903 | + | |
| 2904 | + | |
| 2905 | + | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
| 2909 | + | |
| 2910 | + | |
| 2911 | + | |
| 2912 | + | |
| 2913 | + | |
| 2914 | + | |
| 2915 | + | |
| 2916 | + | |
| 2917 | + | |
| 2918 | + | |
| 2919 | + | |
| 2920 | + | |
| 2921 | + | |
| 2922 | + | |
| 2923 | + | |
| 2924 | + | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
| 2928 | + | |
| 2929 | + | |
| 2930 | + | |
| 2931 | + | |
| 2932 | + | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
| 2936 | + | |
| 2937 | + | |
| 2938 | + | |
| 2939 | + | |
| 2940 | + | |
| 2941 | + | |
| 2942 | + | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
2903 | 2946 | | |
2904 | 2947 | | |
2905 | 2948 | | |
| |||
0 commit comments