-
Notifications
You must be signed in to change notification settings - Fork 438
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
Use tensor_shape_to_c_string for error in check_mask_indices #8314
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/8314
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1a17c4d with merge base 9746ce7 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
#ifdef ET_LOG_ENABLED | ||
auto mask_shape = executorch::runtime::tensor_shape_to_c_string( | ||
executorch::runtime::Span<const Tensor::SizesType>( | ||
index.sizes().data(), index.sizes().size())); | ||
auto input_shape = executorch::runtime::tensor_shape_to_c_string( | ||
executorch::runtime::Span<const Tensor::SizesType>( | ||
in.sizes().data() + in_i, index.sizes().size())); | ||
#endif // ET_LOG_ENABLED | ||
ET_LOG( | ||
Error, | ||
"The shape of mask index %s must match the sizes of the corresponding input dimensions %s.", | ||
mask_shape.data(), | ||
input_shape.data()); |
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.
Same here, I think it'd be less surprising if the ifdef covered the entire scope of the vars that are defined inside it.
#ifdef ET_LOG_ENABLED | |
auto mask_shape = executorch::runtime::tensor_shape_to_c_string( | |
executorch::runtime::Span<const Tensor::SizesType>( | |
index.sizes().data(), index.sizes().size())); | |
auto input_shape = executorch::runtime::tensor_shape_to_c_string( | |
executorch::runtime::Span<const Tensor::SizesType>( | |
in.sizes().data() + in_i, index.sizes().size())); | |
#endif // ET_LOG_ENABLED | |
ET_LOG( | |
Error, | |
"The shape of mask index %s must match the sizes of the corresponding input dimensions %s.", | |
mask_shape.data(), | |
input_shape.data()); | |
#ifdef ET_LOG_ENABLED | |
auto mask_shape = executorch::runtime::tensor_shape_to_c_string( | |
executorch::runtime::Span<const Tensor::SizesType>( | |
index.sizes().data(), index.sizes().size())); | |
auto input_shape = executorch::runtime::tensor_shape_to_c_string( | |
executorch::runtime::Span<const Tensor::SizesType>( | |
in.sizes().data() + in_i, index.sizes().size())); | |
ET_LOG( | |
Error, | |
"The shape of mask index %s must match the sizes of the corresponding input dimensions %s.", | |
mask_shape.data(), | |
input_shape.data()); | |
#endif // ET_LOG_ENABLED |
It seems like this PR breaks multiple tests |
ugh, why do we have tests that only run on trunk, grumble grumble |
suspiciously it is mostly qnn stuff + test-binary-size-linux. investigating |
#8403 should fix test-binary-size-linux |
#8404 might fix QNN, running ciflow/trunk on the stack (EDIT: looks green) |
Rolling out for #7902