MCPcopy Create free account
hub / github.com/tensorflow/models / replace

Method replace

official/modeling/hyperparams/base_config.py:326–333  ·  view source on GitHub ↗

Overrides/returns a unlocked copy with the current config unchanged.

(self, **kwargs)

Source from the content-addressed store, hash-verified

324 }
325
326 def replace(self, **kwargs):
327 """Overrides/returns a unlocked copy with the current config unchanged."""
328 # pylint: disable=protected-access
329 params = copy.deepcopy(self)
330 params._locked = False
331 params._override(kwargs, is_strict=True)
332 # pylint: enable=protected-access
333 return params
334
335 @classmethod
336 def from_yaml(cls, file_path: str):

Callers 15

test_replaceMethod · 0.80
help_wrapFunction · 0.80
__init__Method · 0.80
efficientnetFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80
_create_examplesMethod · 0.80
_create_examplesMethod · 0.80
preprocess_textFunction · 0.80
encode_piecesFunction · 0.80

Calls 1

_overrideMethod · 0.45

Tested by 2

test_replaceMethod · 0.64