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

Method owner_set

tensorflow/python/autograph/pyct/qual_names.py:125–138  ·  view source on GitHub ↗

Returns all the symbols (simple or composite) that own this QN. In other words, if this symbol was modified, the symbols in the owner set may also be affected. Examples: 'a.b[c.d]' has two owners, 'a' and 'a.b'

(self)

Source from the content-addressed store, hash-verified

123
124 @property
125 def owner_set(self):
126 """Returns all the symbols (simple or composite) that own this QN.
127
128 In other words, if this symbol was modified, the symbols in the owner set
129 may also be affected.
130
131 Examples:
132 'a.b[c.d]' has two owners, 'a' and 'a.b'
133 """
134 owners = set()
135 if self.has_attr() or self.has_subscript():
136 owners.add(self.parent)
137 owners.update(self.parent.owner_set)
138 return owners
139
140 @property
141 def support_set(self):

Callers

nothing calls this directly

Calls 4

has_attrMethod · 0.95
has_subscriptMethod · 0.95
addMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected