MCPcopy Create free account
hub / github.com/NVIDIA/DALI / has

Method has

dali/python/nvidia/dali/_conditionals.py:154–163  ·  view source on GitHub ↗

Check if this DataNode was either produced in this scope or already split for this scope.

(self, data_node)

Source from the content-addressed store, hash-verified

152 )
153
154 def has(self, data_node):
155 """
156 Check if this DataNode was either produced in this scope or already split for this scope.
157 """
158 if _data_node_repr(data_node) in self.produced:
159 return True
160 elif _data_node_repr(data_node) in self.splits:
161 return True
162 else:
163 return False
164
165 def get(self, data_node):
166 """Return the `data_node` if it was produced in this scope, or the appropriate split node

Callers 2

getMethod · 0.95
_find_closestMethod · 0.45

Calls 1

_data_node_reprFunction · 0.85

Tested by

no test coverage detected