Commit 697c6ac
authored
Add Op(multinomial) | torchlib(feat) (#1032)
~~1. xfail reason: ONNX spec expects the first dim is batch size, and
the whole input should be 2D.~~
~~2. extra opinfo reason: We would like to have a pure 2D datasets to
make sure the op is functional.~~
ATen supports 1D and 2D, but ONNX only supports 2D, so Unsqueeze would
be used when it's 1D input.1 parent f270dc1 commit 697c6ac
File tree
2 files changed
+16
-6
lines changed- onnxscript
- function_libs/torch_lib/ops
- tests/function_libs/torch_lib
2 files changed
+16
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4820 | 4820 | | |
4821 | 4821 | | |
4822 | 4822 | | |
| 4823 | + | |
4823 | 4824 | | |
4824 | | - | |
| 4825 | + | |
4825 | 4826 | | |
4826 | | - | |
4827 | | - | |
4828 | | - | |
| 4827 | + | |
| 4828 | + | |
4829 | 4829 | | |
4830 | | - | |
4831 | | - | |
| 4830 | + | |
| 4831 | + | |
| 4832 | + | |
| 4833 | + | |
| 4834 | + | |
| 4835 | + | |
| 4836 | + | |
| 4837 | + | |
| 4838 | + | |
| 4839 | + | |
| 4840 | + | |
4832 | 4841 | | |
4833 | 4842 | | |
4834 | 4843 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1545 | 1545 | | |
1546 | 1546 | | |
1547 | 1547 | | |
| 1548 | + | |
1548 | 1549 | | |
1549 | 1550 | | |
1550 | 1551 | | |
| |||
0 commit comments