e63590f44eb365e4a265f6f63a3fc111746b9f53,gpflow/params/parameter.py,Parameter,assign,#Parameter#Any#Any#,151
Before Change
value = Parameter._valid_input(value)
if self.is_built_coherence() is Build.YES:
if self.shape != value.shape:
raise GPflowError("Value has different shape.")
session = self.enquire_session(session)
self.is_built_coherence(graph=session.graph)
transformed_value = self._apply_transform(value)
self.parameter_tensor.load(transformed_value, session=session)
After Change
value = Parameter._valid_input(value)
if self.is_built_coherence() is Build.YES:
if self.shape != value.shape:
raise GPflowError("Value has different shape. "
"Parameter shape {0}, value shape {1}."
.format(self.shape, value.shape))
self._value[...] = value.copy()
session = self.enquire_session(session)
self.is_built_coherence(graph=session.graph)
self.initialize(session=session)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: GPflow/GPflow
Commit Name: e63590f44eb365e4a265f6f63a3fc111746b9f53
Time: 2017-10-07
Author: art.art.v@gmail.com
File Name: gpflow/params/parameter.py
Class Name: Parameter
Method Name: assign
Project Name: GPflow/GPflow
Commit Name: 4a13ddd18d627017f766b185c2ca380bc2202773
Time: 2017-11-05
Author: art.art.v@gmail.com
File Name: gpflow/core/node.py
Class Name: Node
Method Name: is_built_coherence
Project Name: GPflow/GPflow
Commit Name: 22e1a80f90f9c6a9fa65dd8c4c4d1f310ae76762
Time: 2017-11-07
Author: art.art.v@gmail.com
File Name: gpflow/params/parameter.py
Class Name: Parameter
Method Name: _set_parameter_attribute