You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add ET_PRI_* macros for Tensor methods that differ with ATen (#9768)
#9751 added a bunch of logging to error messages. We discovered after
commit that it caused -Wformat warnings (turned into errors via -Werror)
in ATen mode, because a bunch of Tensor methods return different types
between ExecuTorch and ATen. This PR adds formatting macros to be used
with this methods and uses them.
"Expected weight to be a vector of size equal to the number of channels in input; weight.has_value() = %d, weight.dim() = %zd, weight.size(0) = %zd, C = %" PRId64,
171
+
"Expected weight to be a vector of size equal to the number of channels in input; weight.has_value() = %d, weight.dim() = %" ET_PRI_TENSOR_DIM
172
+
", weight.size(0) = %" ET_PRI_TENSOR_SIZE ", C = %" PRId64,
"Expected bias to be a vector of size equal to the number of channels in input; bias.has_value() = %d, bias.dim() = %zd, bias.size(0) = %zd, C = %" PRId64,
180
+
"Expected bias to be a vector of size equal to the number of channels in input; bias.has_value() = %d, bias.dim() = %" ET_PRI_TENSOR_DIM
181
+
", bias.size(0) = %" ET_PRI_TENSOR_SIZE ", C = %" PRId64,
0 commit comments