Skip to main content

detect_generation

Function detect_generation 

Source
pub fn detect_generation() -> NeuronGen
Expand description

Best-effort generation detection. Prefers NEURON_INSTANCE_TYPE env hint (commonly set by AWS Deep Learning AMIs + containers), falls back to the Neuron runtime major version.