-
Notifications
You must be signed in to change notification settings - Fork 712
Android: Add Tensor.ones() and Tensor.zeros() factory methods #15388
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
base: main
Are you sure you want to change the base?
Android: Add Tensor.ones() and Tensor.zeros() factory methods #15388
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15388
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New Failure, 5 Unrelated FailuresAs of commit 56ec76c with merge base 964515c ( NEW FAILURE - The following job has failed:
FLAKY - The following job failed but was likely due to flakiness present on trunk:
BROKEN TRUNK - The following jobs failed but was present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "release notes: misc" |
18e207f to
4c6d19d
Compare
|
@shubham0204 Thanks for the contribution. Can you fix the java android lint and rebase the PR? If everything looks good, we can merge it shortly. |
4c6d19d to
def5753
Compare
|
@GregoryComer I have fixed the Java formatting issues in the modified files. The formatting used is |
…e tensors initialized with ones and zeros resp. (pytorch#15125)
def5753 to
56ec76c
Compare
Fixes #15125
Release notes:
miscSummary
Tensor.ones()in theandroidextensionTest plan
The following new JUnit tests were added to verify the behavior of
Tensor.ones()inextension/android/executorch_android/src/test/java/org/pytorch/executorch/TensorTest.kttestOnes_DTypeIsFloatcc @kirklandsign @cbilgin