module documentation
Backend_Types module.
Function | backend |
A valid backend type is passed through, but an invalid backend type converts to the default type. |
Function | backend |
Converts a backend type to a backend name. |
Function | get |
Checks if CUDA is available |
Function | get |
Checks if JIT is enabled (or at least not explicitly disabled). |
Constant | BACKEND |
Map of backend types to their availability. |
Constant | BACKEND |
Backend type: CUDA. |
Variable |
|
Map of backend types to names. |
Variable |
|
Default backend type. |
A valid backend type is passed through, but an invalid backend type converts to the default type.
Parameters | |
backendint | Backend type |
Returns | |
int | Safe backend type |
Converts a backend type to a backend name.
Parameters | |
backendint | Backend type |
Returns | |
str | Backend name |