360ed9d9b6a8f25e8ec1302b523ca3dcc97c6f02,theanolm/network/network.py,Network,get_state,#Network#Any#,255

Before Change


        :param state: HDF5 file for storing the neural network parameters
        

        for name, param in self.params.items():
            if name in state:
                state[name][:] = param.get_value()
            else:
                state.create_dataset(name, data=param.get_value())

        self.architecture.get_state(state)

    def set_state(self, state):
        Sets the values of Theano shared variables.

After Change


        :param state: HDF5 file for storing the neural network parameters
        

        for layer in self.layers.values():
            layer.params.get_state(state)

        self.architecture.get_state(state)

    def set_state(self, state):
        Sets the values of Theano shared variables.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: get_state


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: OpenMined/PySyft
Commit Name: 0d66931e6da93fda1c07388e6a2ed16d9a129040
Time: 2020-08-29
Author: jason.paumier@gmail.com
File Name: src/syft/core/store/store_memory.py
Class Name: MemoryStore
Method Name: get_objects_of_type