38a5fe7af1ba300aa95d7716b5bdee35d52d032b,pytorch_lightning/trainer/training_loop.py,TrainLoop,build_train_args,#TrainLoop#,837
Before Change
args.append(opt_idx)
else:
num_opts = len(self.trainer.optimizers)
raise ValueError(
f"Your LightningModule defines {num_opts} optimizers but "
f"training_step is missing the "optimizer_idx" argument."
)
// pass hiddens if using tbptt
if self.trainer.truncated_bptt_steps is not None:
args.append(hiddens)
After Change
" the old signature will be removed in v1.5", DeprecationWarning
)
args.append(opt_idx)
elif not self.trainer.has_arg("training_step", "optimizer_idx") and self.automatic_optimization:
raise ValueError(
f"Your LightningModule defines {len(self.trainer.optimizers)} optimizers but"
" `training_step` is missing the `optimizer_idx` argument."
)
// pass hiddens if using tbptt
if self.trainer.truncated_bptt_steps is not None:
args.append(hiddens)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: williamFalcon/pytorch-lightning
Commit Name: 38a5fe7af1ba300aa95d7716b5bdee35d52d032b
Time: 2021-03-06
Author: rohitgr1998@gmail.com
File Name: pytorch_lightning/trainer/training_loop.py
Class Name: TrainLoop
Method Name: build_train_args
Project Name: chainer/chainercv
Commit Name: 9cc2c91177a6456dea602a93b77864b0a7952333
Time: 2019-02-24
Author: ktns.87@gmail.com
File Name: chainercv/links/model/pickable_sequential_chain.py
Class Name: PickableSequentialChain
Method Name: pick
Project Name: dmlc/gluon-nlp
Commit Name: 46c595168cabd5ce99981748204c53de4ffe0261
Time: 2018-11-19
Author: leonard@lausen.nl
File Name: src/gluonnlp/data/stream.py
Class Name: _Prefetcher
Method Name: __next__
Project Name: OpenMined/PySyft
Commit Name: 361e2250497d67695709132bdef20976e4f7f0fc
Time: 2020-07-17
Author: andrew@openmined.org
File Name: src/syft/core/nodes/abstract/worker.py
Class Name: Worker
Method Name: recv_msg