b8904ac33f1f480f451762cdede8d66f6195763a,inferno/trainers/basic.py,Trainer,wrap_batch,#Trainer#Any#Any#Any#Any#,1164
Before Change
elif pyu.is_listlike(_batch):
// This supresses the volatile deprecated warning
// TODO remove after Pytorch 1.0
with warnings.catch_warnings():
warnings.simplefilter("ignore")
variable_batch.append([Variable(__batch, requires_grad=requires_grad,
volatile=volatile)
for __batch in _batch])
else:
raise RuntimeError(f"Was Expecting batch at index {batch_num} to be either a "
f"tensor or a list of tensors. Got {type(_batch)} instead.")
batch = type(batch)(variable_batch)
After Change
"No `loader_spec` found for loader key "{}".".format(from_loader),
RuntimeError)
// Get number of targets
num_inputs = loader_spec["num_inputs"]
if num_inputs is None:
num_inputs = len(batch) - loader_spec["num_targets"]
// Fetch input batches and send"em to device (leave the targets alone)
inputs = batch[:num_inputs]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: inferno-pytorch/inferno
Commit Name: b8904ac33f1f480f451762cdede8d66f6195763a
Time: 2019-05-26
Author: valentyna.zinchenko@embl.de
File Name: inferno/trainers/basic.py
Class Name: Trainer
Method Name: wrap_batch
Project Name: scipy/scipy
Commit Name: 5481c313634e67ed43d0f4ee2da6a272d703cee2
Time: 2017-07-14
Author: person142@users.noreply.github.com
File Name: scipy/special/tests/test_basic.py
Class Name: TestRiccati
Method Name: test_riccati_jn
Project Name: scipy/scipy
Commit Name: 5481c313634e67ed43d0f4ee2da6a272d703cee2
Time: 2017-07-14
Author: person142@users.noreply.github.com
File Name: scipy/special/tests/test_basic.py
Class Name: TestRiccati
Method Name: test_riccati_yn
Project Name: analysiscenter/batchflow
Commit Name: 327235adabdcdff566ff74413795091353dcfc1f
Time: 2019-10-16
Author: 53620809+cdtn@users.noreply.github.com
File Name: batchflow/models/metrics/utils.py
Class Name:
Method Name: infmean