7c2711ffb9edbfbd7db5e1b3d000f8cdc2069b50,gpflow/base.py,Parameter,__repr__,#Parameter#,180

Before Change


        return self._unconstrained.handle

    def __repr__(self):
        return self.read_value().__repr__()

    // Below
    // TensorFlow copy-paste code to make variable-like object to work

After Change



    def __repr__(self):
        unconstrained = self.unconstrained_variable
        constrained = self.read_value()
        info = f"dtype={self.dtype.name} " \
               f"unconstrained-shape={unconstrained.shape} " \
               f"unconstrained-numpy={unconstrained.numpy()} " \
               f"constrained-shape={constrained.shape} " \
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GPflow/GPflow
Commit Name: 7c2711ffb9edbfbd7db5e1b3d000f8cdc2069b50
Time: 2020-01-10
Author: st--@users.noreply.github.com
File Name: gpflow/base.py
Class Name: Parameter
Method Name: __repr__


Project Name: GPflow/GPflow
Commit Name: fac8000e2135575f622638107a06ff65ba381811
Time: 2017-10-25
Author: james.hensman@gmail.com
File Name: gpflow/params/parameter.py
Class Name: Parameter
Method Name: _format_parameter


Project Name: GPflow/GPflow
Commit Name: fc8ea51490e8d23d26c49403fe3bd40f53e4c66a
Time: 2017-11-14
Author: art.art.v@gmail.com
File Name: gpflow/params/parameterized.py
Class Name: Parameterized
Method Name: assign