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

Method DEFINE_string

imperative/python/megengine/xla/lib/config.py:127–129  ·  view source on GitHub ↗
(self, name, default, *args, **kwargs)

Source from the content-addressed store, hash-verified

125 self.add_option(name, default, float, args, kwargs, update_hook=update_hook)
126
127 def DEFINE_string(self, name, default, *args, **kwargs):
128 update_hook = kwargs.pop("update_hook", None)
129 self.add_option(name, default, str, args, kwargs, update_hook=update_hook)
130
131 def DEFINE_enum(self, name, default, *args, **kwargs):
132 update_hook = kwargs.pop("update_hook", None)

Callers 2

xla_bridge.pyFile · 0.80

Calls 1

add_optionMethod · 0.95

Tested by

no test coverage detected