True if a Metal device is present and enabled in TVM_TEST_TARGETS.
()
| 188 | |
| 189 | |
| 190 | def has_metal() -> bool: |
| 191 | """True if a Metal device is present and enabled in TVM_TEST_TARGETS.""" |
| 192 | return _device_usable("metal") |
| 193 | |
| 194 | |
| 195 | def has_opencl() -> bool: |
nothing calls this directly
no test coverage detected
searching dependent graphs…