pub fn detect_generation() -> NeuronGen
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.
NEURON_INSTANCE_TYPE