72010aaac0c812a833a90e26b580bd57b6741a1a,pixyz/distributions/distributions.py,DistributionBase,_check_features_shape,#DistributionBase#Any#,881

Before Change


            return batches

        raise ValueError("the shape of a given parameter {} and features_shape {} "
                         "do not match.".format(features.size(), self.features_shape))

    @property
    def params_keys(self):

After Change


            batches = features.unsqueeze(0)
            return batches

        raise ValueError(f"the shape of a given parameter {features.size()}"
                         f" and features_shape {self.features_shape} do not match.")

    @property
    def params_keys(self):
        list: Return the list of parameter names for this distribution.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: masa-su/pixyz
Commit Name: 72010aaac0c812a833a90e26b580bd57b6741a1a
Time: 2020-07-06
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: DistributionBase
Method Name: _check_features_shape


Project Name: pyannote/pyannote-audio
Commit Name: 20d7366a5f1f75970705f93cb576c8e77f3ee835
Time: 2018-11-09
Author: bredin@limsi.fr
File Name: pyannote/audio/labeling/models.py
Class Name: StackedRNN
Method Name: forward


Project Name: Scitator/catalyst
Commit Name: 3ab0ed613134e41a44c3a461493eeda19eff9099
Time: 2018-12-21
Author: tez.romach@gmail.com
File Name: losses/focal_loss.py
Class Name: FocalLoss
Method Name: forward