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

Method __str__

tensorflow/python/eager/context.py:625–633  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

623 return self._context_devices
624
625 def __str__(self):
626 if self._context_handle is None:
627 return "Eager TensorFlow Context. Devices currently uninitialized."
628 else:
629 devices = self._devices
630 lines = ["Eager TensorFlow Context with %d devices" % (len(devices))]
631 for i, d in enumerate(devices):
632 lines.append(" Device %d: %s" % (i, d))
633 return "\n".join(lines)
634
635 @tf_contextlib.contextmanager
636 def _mode(self, mode):

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected