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

Method stack_depth

dali/python/nvidia/dali/_conditionals.py:227–230  ·  view source on GitHub ↗

Get the depth of the stack. Note, that by default there is at least one element - the global scope.

(self)

Source from the content-addressed store, hash-verified

225 return result
226
227 def stack_depth(self):
228 """Get the depth of the stack. Note, that by default there is at least one element
229 - the global scope."""
230 return len(self._stack)
231
232 def _find_closest(self, data_node):
233 """Find the closest scope level in the stack where we can access this node as produced

Callers 11

_find_closestMethod · 0.95
_realize_splitMethod · 0.95
preprocess_inputMethod · 0.95
register_data_nodesMethod · 0.95
_indentMethod · 0.95
_cond_managerFunction · 0.80
_cond_trueFunction · 0.80
_cond_falseFunction · 0.80
merge_branchesMethod · 0.80
test_condition_stackFunction · 0.80

Calls

no outgoing calls

Tested by 1

test_condition_stackFunction · 0.64