Python function
calculate_virtual_device_count_from_cli
calculate_virtual_device_count_from_cli()
max.driver.calculate_virtual_device_count_from_cli(*device_inputs)
Calculates the minimum virtual device count from raw CLI inputs (before parsing).
This helper works with the raw device input strings or lists before they’re
parsed into DeviceSpec objects. Used when virtual device mode needs to be
enabled before device validation occurs.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!