MCPcopy Index your code
hub / github.com/tensorflow/models / lock

Method lock

official/modeling/hyperparams/params_dict.py:204–206  ·  view source on GitHub ↗

Makes the ParamsDict immutable.

(self)

Source from the content-addressed store, hash-verified

202 self.__dict__[k] = copy.deepcopy(v)
203
204 def lock(self):
205 """Makes the ParamsDict immutable."""
206 self._locked = True
207
208 def as_dict(self):
209 """Returns a dict representation of ParamsDict.

Callers 15

test_lockMethod · 0.95
_get_params_from_flagsFunction · 0.80
runFunction · 0.80
_save_configMethod · 0.80
parse_configurationFunction · 0.80
benchmarkMethod · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
_build_experiment_modelFunction · 0.80
build_experiment_modelFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_lockMethod · 0.76
_build_experiment_modelFunction · 0.64