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

Function run_gpu_only

tensorflow/tensorflow/python/framework/test_util.py:1319–1349  ·  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 presence of a GPU. If a GPU is absent, it will simply be skipped. Args: func: function to be annotated. If `func` is None, this method returns a decorator the ca

(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