439bb9ca77a3381a6355667be68e291bb20218f7,gpflow/core/node.py,Node,set_parent,#Node#Any#,70
Before Change
self._session = session
def set_parent(self, parent=None):
if self.parent is not self and self.is_built_coherence() is Build.YES:
raise GPflowError("Parent cannot be changed for compiled node.")
if parent and not isinstance(parent, Parentable):
raise GPflowError("Argument does not implement parentable interface.")
self._session = None
self._parent = parent if parent is not None else None
def is_built_coherence(self, graph=None):
After Change
self._session = session
def set_parent(self, parent=None):
if parent is self:
raise ValueError("Self references are prohibited.")
if parent and not isinstance(parent, Parentable):
raise ValueError("Parent object must implement parentable interface.")
self._session = None
self._parent = parent if parent is not None else None
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: GPflow/GPflow
Commit Name: 439bb9ca77a3381a6355667be68e291bb20218f7
Time: 2017-09-29
Author: art.art.v@gmail.com
File Name: gpflow/core/node.py
Class Name: Node
Method Name: set_parent
Project Name: GPflow/GPflow
Commit Name: 323e3ce7be2742c6cfef2d4c25b346d0019deac5
Time: 2017-11-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: 45fed420bcc3b0767b581b4ee804e0865e92a7a8
Time: 2018-06-28
Author: mikhailbeck@gmail.com
File Name: gpflow/training/scipy_optimizer.py
Class Name: ScipyOptimizer
Method Name: minimize