Closed
Description
🚀 The feature, motivation and pitch
Currently, when we complain about tensors' shapes, we don't include them in the log message because it's not obvious or convenient how to do this. I think we can write a shape_to_string function that uses an extremely finite amount of stack space (kTensorDimensionLimit
* 4 digits per dim + commas, spaces, and parentheses) and use that to do this logging. (@dbort , how big an array can I put on the stack on a prototypical embedded system these days, and/or do you have any other ideas for how to do this?)
Alternatives
No response
Additional context
Motivating example: #7748 (comment)
RFC (Optional)
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done