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

Method GetColocationGroups

tensorflow/python/grappler/item.py:66–75  ·  view source on GitHub ↗

Return a list of hard colocation constraints. All the nodes in a colocation tuple must be placed on the same device for the model to work. Returns: A list of colocation tuples.

(self)

Source from the content-addressed store, hash-verified

64 return properties
65
66 def GetColocationGroups(self):
67 """Return a list of hard colocation constraints.
68
69 All the nodes in a colocation tuple must be placed on the same device for
70 the model to work.
71
72 Returns:
73 A list of colocation tuples.
74 """
75 return tf_item.TF_GetColocationGroups(self.tf_item)
76
77 @property
78 def metagraph(self):

Callers 2

__init__Method · 0.80

Calls

no outgoing calls

Tested by 1