bitorch.runtime_mode.RuntimeMode¶
- class bitorch.runtime_mode.RuntimeMode(value)[source]¶
Enum for BITorch modes:
DEFAULT: use the default implementation of all layers
CPU: use layer implementations for inference on CPU
GPU: use layer implementations for inference on GPU
INFERENCE_AUTO: use an automatic layer that uses the fastest implementation available (not recommended)
RAW: while in this mode, new layers are created as the default implementation BUT without wrapping, so they can not be switched to other layers later on (it does not influence already wrapped layers)
Methods
available_valueslist_of_namesis_single_modeis_combined_modefrom_stringmode_compatibleis_supported_byAttributes
RAWDEFAULTCPUGPUINFERENCE_AUTO