360ed9d9b6a8f25e8ec1302b523ca3dcc97c6f02,theanolm/network/network.py,Network,set_state,#Network#Any#,273
Before Change
for name, param in self.params.items():
if not name in state:
raise IncompatibleStateError(
"Parameter %s is missing from neural network state." % name)
new_value = state[name].value
param.set_value(new_value)
if len(new_value.shape) == 0:
logging.debug("%s <- %s", name, str(new_value))
After Change
:param state: HDF5 file that contains the neural network parameters
for layer in self.layers.values():
layer.params.set_state(state)
try:
self.architecture.check_state(state)
except IncompatibleStateError as error:
raise IncompatibleStateError(
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: senarvi/theanolm
Commit Name: 360ed9d9b6a8f25e8ec1302b523ca3dcc97c6f02
Time: 2016-12-06
Author: seppo.git@marjaniemi.com
File Name: theanolm/network/network.py
Class Name: Network
Method Name: set_state
Project Name: dnouri/skorch
Commit Name: 53ef00376510ee9ba4506918db06b25dad4a7ea4
Time: 2017-07-31
Author: benjamin.bossan@ottogroup.com
File Name: inferno/callbacks.py
Class Name: BestLoss
Method Name: initialize
Project Name: Microsoft/nni
Commit Name: 10d7ece1c34c5533262a54d20d974a3d04f0b7ce
Time: 2020-09-15
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/tensorflow/compressor.py
Class Name: Compressor
Method Name: __init__
Project Name: pantsbuild/pants
Commit Name: 1e3f7071cf4095abfface461164703106563c459
Time: 2016-02-22
Author: stuhood@gmail.com
File Name: src/python/pants/engine/exp/mapper.py
Class Name: AddressMapper
Method Name: resolve