MCPcopy Create free account
hub / github.com/pytorch/pytorch / has_helper

Method has_helper

caffe2/python/brew.py:129–135  ·  view source on GitHub ↗
(self, helper_or_helper_name)

Source from the content-addressed store, hash-verified

127 self._registry[name] = helper
128
129 def has_helper(self, helper_or_helper_name):
130 helper_name = (
131 helper_or_helper_name
132 if isinstance(helper_or_helper_name, basestring) else
133 helper_or_helper_name.__name__
134 )
135 return helper_name in self._registry
136
137
138# pyre-fixme[6]: incompatible parameter type: expected ModuleType, got HelperWrapper

Callers 2

setUpMethod · 0.80
test_has_helperMethod · 0.80

Calls 1

isinstanceFunction · 0.85

Tested by 2

setUpMethod · 0.64
test_has_helperMethod · 0.64