Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ device
Function
device
tensorflow/contrib/eager/python/examples/gan/mnist_test.py:38–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
36
37
38
def
device():
39
return
'/gpu:0'
if
tf.test.is_gpu_available()
else
'/cpu:0'
40
41
42
class
MnistEagerGanBenchmark(tf.test.Benchmark):
Callers
10
benchmark_train
Method · 0.70
benchmark_generate
Method · 0.70
op_device_context
Method · 0.50
OpKernelContext
Class · 0.50
set_output
Method · 0.50
AsProto
Method · 0.50
DebugString
Method · 0.50
CreateItem
Method · 0.50
InitRngWithRandomSeed
Function · 0.50
AdaptiveSharedBatchScheduler
Method · 0.50
Calls
no outgoing calls
Tested by
no test coverage detected