MCPcopy Create free account
hub / github.com/apache/tvm / has_cudnn

Function has_cudnn

python/tvm/testing/env.py:240–242  ·  view source on GitHub ↗

True if cuDNN was built in and a CUDA device is present.

()

Source from the content-addressed store, hash-verified

238
239
240def has_cudnn() -> bool:
241 """True if cuDNN was built in and a CUDA device is present."""
242 return has_cuda() and _build_flag_enabled("USE_CUDNN")
243
244
245def has_cublas() -> bool:

Callers

nothing calls this directly

Calls 2

has_cudaFunction · 0.85
_build_flag_enabledFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…