For more information on the search, visit the help page.
layout
make_default_layout
utils
config
constants
environ
filesystem_utils
general
hub
hub_requests
metadata
nn_archive
plugins
quantization
sdk_models
subprocess
telemetry
types
Environ
hubai_sdk.utils.layout
hubai_sdk
Undocumented
list[int]
str
Creates a default layout for the given shape.
Tries to guess most common layouts for the given shape pattern. Otherwise, uses the first free letter of the alphabet for each dimension.
Example
>>> make_default_layout([1, 3, 256, 256]) >>> "NCHW" >>> make_default_layout([1, 19, 7, 8]) >>> "NABC"