-
Notifications
You must be signed in to change notification settings - Fork 23.2k
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
[pt2] add SymInt
support for bilinear
#103396
Conversation
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/103396
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 9f6a7d3: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: c3e9708e6fe8b41d4de3b5b5ace3ef0129d0f8f8 Pull Request resolved: #103396
if (sumdim[i] && (i != unroll_dim)) | ||
sum_dims_23.push_back(i); | ||
} | ||
output_size.push_back(sumdim[i] ? 1 : s); | ||
if (i == unroll_dim) | ||
unroll_size = s; | ||
unroll_size = s.guard_int(__FILE__, __LINE__); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used later with irange
@@ -626,45 +626,45 @@ Tensor _trilinear(const Tensor& i1_, const Tensor& i2_, const Tensor& i3_, | |||
Tensor i1 = i1_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
called from bilinear
@@ -626,45 +626,45 @@ Tensor _trilinear(const Tensor& i1_, const Tensor& i2_, const Tensor& i3_, | |||
Tensor i1 = i1_; | |||
Tensor i2 = i2_; | |||
Tensor i3 = i3_; | |||
std::vector<int64_t> output_size; | |||
std::vector<c10::SymInt> output_size; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: can't you reserve the size of this vector as total_dim?
Stack from ghstack:
SymInt
support forcosine_similarity
#103400SymInt
support forbilinear
#103396avg_pool3d
andavg_pool3d_backward
#103392