Skip to content

Add Op(multinomial) | torchlib(feat)#1032

Merged
titaiwangms merged 7 commits intomicrosoft:mainfrom
titaiwangms:titaiwang/aten_multinomail
Aug 29, 2023
Merged

Add Op(multinomial) | torchlib(feat)#1032
titaiwangms merged 7 commits intomicrosoft:mainfrom
titaiwangms:titaiwang/aten_multinomail

Conversation

@titaiwangms
Copy link
Copy Markdown
Contributor

@titaiwangms titaiwangms commented Aug 29, 2023

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.

@titaiwangms titaiwangms added the module: torchlib Related to the torch/aten function lib in development label Aug 29, 2023
@titaiwangms titaiwangms mentioned this pull request Aug 29, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 29, 2023

Codecov Report

Merging #1032 (ad6cbd3) into main (f270dc1) will increase coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1032      +/-   ##
==========================================
+ Coverage   77.62%   77.66%   +0.04%     
==========================================
  Files         114      114              
  Lines       14428    14436       +8     
  Branches     1543     1545       +2     
==========================================
+ Hits        11200    11212      +12     
+ Misses       2862     2858       -4     
  Partials      366      366              
Files Changed Coverage Δ
...ipt/tests/function_libs/torch_lib/ops_test_data.py 96.00% <ø> (ø)
onnxscript/function_libs/torch_lib/ops/core.py 78.97% <100.00%> (+0.09%) ⬆️

... and 1 file with indirect coverage changes

Copy link
Copy Markdown
Collaborator

@justinchuby justinchuby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm!

@titaiwangms titaiwangms merged commit 697c6ac into microsoft:main Aug 29, 2023
@titaiwangms titaiwangms deleted the titaiwang/aten_multinomail branch August 29, 2023 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: torchlib Related to the torch/aten function lib in development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants