MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / has_input

Method has_input

imperative/python/megengine/utils/network.py:718–727  ·  view source on GitHub ↗

r"""an opr is kept if it has given var as one of its inputs Args: var: var node to checked Returns: a new :class:`NodeFilter` object

(self, var)

Source from the content-addressed store, hash-verified

716 return NodeFilterName(self, pattern, ignorecase)
717
718 def has_input(self, var):
719 r"""an opr is kept if it has given var as one of its inputs
720
721 Args:
722 var: var node to checked
723
724 Returns:
725 a new :class:`NodeFilter` object
726 """
727 return NodeFilterHasInput(self, var)
728
729 def as_list(self):
730 r"""consume this iterator and return its content as a list"""

Callers 4

get_var_receive_oprsMethod · 0.80
test_replace_varFunction · 0.80
test_replace_oprFunction · 0.80
test_queryFunction · 0.80

Calls 1

NodeFilterHasInputClass · 0.85

Tested by 3

test_replace_varFunction · 0.64
test_replace_oprFunction · 0.64
test_queryFunction · 0.64