Skip to main content

default_device_for

Function default_device_for 

Source
pub fn default_device_for(backend: BackendId) -> DeviceLocation
Expand description

Default DeviceLocation for a BackendId when the graph has no per-node placement set. Mirrors the convention in fuel-graph-router (CPU is the singleton Cpu; GPU backends default to ordinal 0).