(self)
| 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. |