MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _device_string

Function _device_string

tensorflow/python/framework/ops.py:1525–1529  ·  view source on GitHub ↗
(dev_spec)

Source from the content-addressed store, hash-verified

1523
1524
1525def _device_string(dev_spec):
1526 if pydev.is_device_spec(dev_spec):
1527 return dev_spec.to_string()
1528 else:
1529 return dev_spec
1530
1531
1532def _NodeDef(op_type, name, device=None, attrs=None): # pylint: disable=redefined-outer-name

Callers 3

string_mergeMethod · 0.85
_NodeDefFunction · 0.85
_set_deviceMethod · 0.85

Calls 1

to_stringMethod · 0.45

Tested by

no test coverage detected