Expand description
libnrt loader. We need three symbols — nrt_init,
nrt_get_total_nc_count, and nrt_get_version — and a best-effort
read of the Neuron-specific env vars that AWS containers set.
drop(sym) on a libloading::Symbol ends the borrow on its Library;
Symbol doesn’t impl Drop but the lifetime parameter does the work.
Structs§
Enums§
Constants§
Functions§
- detect_
generation - Best-effort generation detection. Prefers
NEURON_INSTANCE_TYPEenv hint (commonly set by AWS Deep Learning AMIs + containers), falls back to the Neuron runtime major version. - is_
available - total_
cores - version