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

Method __str__

tensorflow/python/training/server_lib.py:329–334  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

327 return self._cluster_spec != other
328
329 def __str__(self):
330 key_values = self.as_dict()
331 string_items = [
332 repr(k) + ": " + repr(key_values[k]) for k in sorted(key_values)
333 ]
334 return "ClusterSpec({" + ", ".join(string_items) + "})"
335
336 def as_dict(self):
337 """Returns a dictionary from job names to their tasks.

Callers

nothing calls this directly

Calls 2

as_dictMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected