09483b66106486433525e0556877daac2f2b6fa5,dytb/trainer/Trainer.py,Trainer,train,#Trainer#,42

Before Change


                else:
                    print(
                        "{} second return value of inputs should be a list or a tensor but is {}".
                        format(self._dataset.name, type(targets)))
                    return
            log_io(inputs)

After Change


                train_phase=True,
                l2_penalty=self._args["regularizations"]["l2"])

            if len(predictions) != len(targets):
                print(("{}.get 2nd return value and {}.inputs 2nd return "
                       "value must have the same cardinality but got: {} vs {}"
                      ).format(self._model.name, self._dataset.name,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: galeone/dynamic-training-bench
Commit Name: 09483b66106486433525e0556877daac2f2b6fa5
Time: 2017-05-08
Author: nessuno@nerdz.eu
File Name: dytb/trainer/Trainer.py
Class Name: Trainer
Method Name: train


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: a4697d7e45e66a3264eb56dcf489d67d4df40d23
Time: 2018-04-23
Author: eriklindernoren@gmail.com
File Name: implementations/cgan/cgan.py
Class Name:
Method Name:


Project Name: Scitator/catalyst
Commit Name: 9f960738f0dee048bcea4c29dcabdbd98cad22dd
Time: 2020-10-21
Author: 19803638+bagxi@users.noreply.github.com
File Name: tests/_tests_cv_classification_transforms/experiment.py
Class Name: MNIST
Method Name: __getitem__