MCPcopy Index your code
hub / github.com/pytorch/pytorch / _has_modifier

Method _has_modifier

caffe2/python/modifier_context.py:26–27  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

24 self._modifiers.update(m)
25
26 def _has_modifier(self, name):
27 return name in self._modifiers
28
29 def _get_modifier(self, name):
30 return self._modifiers.get(name)

Callers 3

has_normalizerMethod · 0.80
has_regularizerMethod · 0.80
has_optimizerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected