MCPcopy 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_devicesFunction · 0.70

Calls 1

ParseFromStringMethod · 0.45

Tested by

no test coverage detected