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

Method get_regularizer

caffe2/python/regularizer_context.py:21–24  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

19 return self._has_modifier(name)
20
21 def get_regularizer(self, name):
22 assert self.has_regularizer(name), (
23 "{} regularizer is not provided!".format(name))
24 return self._get_modifier(name)
25
26
27class UseRegularizer(UseModifierBase):

Callers 1

Calls 3

has_regularizerMethod · 0.95
_get_modifierMethod · 0.80
formatMethod · 0.45

Tested by 1