Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ current_device
Function
current_device
tensorflow/python/eager/core_test.py:65–66 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
63
64
65
def
current_device():
66
return
constant_op.constant(1.).device
67
68
69
def
configure_virtual_cpus():
Callers
2
testDevicePlacementEnforcesConsistency
Method · 0.85
testReEntrant
Method · 0.85
Calls
1
constant
Method · 0.45
Tested by
no test coverage detected