MCPcopy Create free account
hub / github.com/alibaba/nann / run_cuda_only

Function run_cuda_only

tensorflow/tensorflow/python/framework/test_util.py:1352–1382  ·  view source on GitHub ↗

Execute the decorated test only if a GPU is available. This function is intended to be applied to tests that require the precense of a CUDA GPU. If a CUDA GPU is absent, it will simply be skipped. Args: func: function to be annotated. If `func` is None, this method returns a decora

(func=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

decoratorFunction · 0.70

Tested by

no test coverage detected