For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /max/get-started.md).
Mojo function
log_shape
def log_shape[has_mode_1: Bool, has_mode_2: Bool, name: String](mode_1: Int, mode_2: Int)
Logs the shape of a named tensor dimension pair to the info logger.
Parameters:
- βhas_mode_1 (
Bool): When True, prefixes the first dimension value with an underscore to indicate a dynamic dimension. - βhas_mode_2 (
Bool): When True, prefixes the second dimension value with an underscore. - βname (
String): The label to print before the shape tuple.
Args:
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!