Skip to content

feat(atenlib): ops 4/n #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 45 commits into from
Dec 15, 2022
Merged

feat(atenlib): ops 4/n #256

merged 45 commits into from
Dec 15, 2022

Conversation

justinchuby
Copy link
Collaborator

@justinchuby justinchuby commented Dec 14, 2022

Stack from ghstack (oldest at bottom):

Some more math and matrix ops

To allow mypy to analyze typing for annotated functions. Otherwise it complains that "Untyped decorator makes function "ones_like" untyped  [misc]"

[ghstack-poisoned]
[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like


[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like


[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like


[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like


[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like


[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
Implemented ops

- lt
- gt
- round
- clamp_min
- clamp_max
- clamp
- repeat
- ones_like

Test:
- Create the ability to skip particular sub tests
- Create a helper function to transform torch inputs into numpy for onnxscript to run on

[ghstack-poisoned]
[ghstack-poisoned]
justinchuby added a commit that referenced this pull request Dec 14, 2022
Some more math and matrix ops

ghstack-source-id: 4598176
Pull Request resolved: #256
@justinchuby justinchuby changed the title feat(atenlib): ops 3/n feat(atenlib): ops 4/n Dec 14, 2022
@justinchuby justinchuby added module: torchlib Related to the torch/aten function lib in development change base before merge Remember to change the merge base to main when the PR is ready to merge labels Dec 14, 2022
Some more math and matrix ops

[ghstack-poisoned]
Some more math and matrix ops

[ghstack-poisoned]
justinchuby added a commit that referenced this pull request Dec 14, 2022
Some more math and matrix ops

ghstack-source-id: 6ae5ad1
Pull Request resolved: #256
Some more math and matrix ops

[ghstack-poisoned]
Some more math and matrix ops

[ghstack-poisoned]
justinchuby added a commit that referenced this pull request Dec 14, 2022
Some more math and matrix ops

ghstack-source-id: b64f805
Pull Request resolved: #256
@codecov
Copy link

codecov bot commented Dec 14, 2022

Codecov Report

Merging #256 (f796bb0) into main (f7ac851) will increase coverage by 0.17%.
The diff coverage is 96.87%.

@@            Coverage Diff             @@
##             main     #256      +/-   ##
==========================================
+ Coverage   71.98%   72.16%   +0.17%     
==========================================
  Files          93       93              
  Lines        8918     8916       -2     
==========================================
+ Hits         6420     6434      +14     
+ Misses       2498     2482      -16     
Impacted Files Coverage Δ
...t/function_libs/torch_aten/ops_correctness_test.py 95.93% <ø> (ø)
onnxscript/function_libs/torch_aten/ops/nn.py 51.55% <50.00%> (-0.02%) ⬇️
onnxscript/function_libs/torch_aten/ops/core.py 53.45% <100.00%> (+1.19%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@justinchuby justinchuby requested a review from fatcat-z December 14, 2022 18:52
Some more math and matrix ops

[ghstack-poisoned]
Some more math and matrix ops

[ghstack-poisoned]
justinchuby added a commit that referenced this pull request Dec 15, 2022
Some more math and matrix ops

ghstack-source-id: b6676ce
Pull Request resolved: #256
raise NotImplementedError()


def aten_celu(self: TensorType, alpha: float = 1.0) -> TensorType:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved to nn.

@@ -785,14 +779,6 @@ def aten_clamp_min_tensor(self, min_):
return op.Max(self, min_)


def aten_clip(
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Alias of clamp

@justinchuby
Copy link
Collaborator Author

@fatcat-z ready for review

Some more math and matrix ops

[ghstack-poisoned]
Some more math and matrix ops

[ghstack-poisoned]
justinchuby added a commit that referenced this pull request Dec 15, 2022
Some more math and matrix ops

ghstack-source-id: cad30d9
Pull Request resolved: #256
Copy link
Contributor

@fatcat-z fatcat-z left a comment

Choose a reason for hiding this comment

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

LGTM.

justinchuby added a commit that referenced this pull request Dec 15, 2022
justinchuby added a commit that referenced this pull request Dec 15, 2022
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at
bottom):
* #256
* __->__ #255
* #252

A bunch of matmul and math ops
@justinchuby justinchuby changed the base branch from gh/justinchuby/14/base to main December 15, 2022 06:07
@justinchuby justinchuby merged commit 2512120 into main Dec 15, 2022
@justinchuby justinchuby deleted the gh/justinchuby/14/head branch December 15, 2022 06:15
@justinchuby justinchuby mentioned this pull request Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change base before merge Remember to change the merge base to main when the PR is ready to merge 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