Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ _convert
Function
_convert
tensorflow/python/client/device_lib.py:34–37 ·
view source on GitHub ↗
(pb_str)
Source
from the content-addressed store, hash-verified
32
A list of `DeviceAttribute` protocol buffers.
33
""
"
34
def
_convert(pb_str):
35
m = device_attributes_pb2.DeviceAttributes()
36
m.ParseFromString(pb_str)
37
return
m
38
39
return
[
40
_convert(s)
Callers
2
list_local_devices
Function · 0.70
precision_recall_at_equal_thresholds
Function · 0.50
Calls
1
ParseFromString
Method · 0.45
Tested by
no test coverage detected