backend¶
torch.tvarant.backend() → str
Returns the active runtime name ("sim" or "opencl").
Return the active runtime name.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
|
str
|
selected via |
Examples:
>>> torch.tvarant.backend()
'sim'
Source code in torch_tvarant/tvarant/__init__.py
108 109 110 111 112 113 114 115 116 117 118 119 | |