1a5d24a4dcd75c0056fcc5a0ca6f529ddaaa0160,models/varnet/varnet.py,VariationalNetworkModel,test_step,#VariationalNetworkModel#,256
Before Change
def test_step(self, batch, batch_idx):
input, _, mean, std, fname, slice = batch
output = self.forward(input)
mean = mean.unsqueeze(1).unsqueeze(2)
std = std.unsqueeze(1).unsqueeze(2)
return {
"fname": fname,
"slice": slice,
After Change
def test_step(self, batch, batch_idx):
masked_kspace, mask, target, fname, slice, _ = batch
output = self.forward(masked_kspace, mask)
_, output = T.center_crop_to_smallest(target, output)
return {
"fname": fname,
"slice": slice,
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: facebookresearch/fastMRI
Commit Name: 1a5d24a4dcd75c0056fcc5a0ca6f529ddaaa0160
Time: 2020-04-23
Author: sayantanbhadra83@gmail.com
File Name: models/varnet/varnet.py
Class Name: VariationalNetworkModel
Method Name: test_step
Project Name: mozilla/TTS
Commit Name: aa40fe1aa0382bf5148d1475dd647def1d2ed332
Time: 2021-01-06
Author: erogol@hotmail.com
File Name: TTS/tts/models/speedy_speech.py
Class Name: SpeedySpeech
Method Name: inference
Project Name: mozilla/TTS
Commit Name: aa40fe1aa0382bf5148d1475dd647def1d2ed332
Time: 2021-01-06
Author: erogol@hotmail.com
File Name: TTS/tts/models/speedy_speech.py
Class Name: SpeedySpeech
Method Name: forward
Project Name: mozilla/TTS
Commit Name: c8a4c771a883774cc5195cb71f0be279f5d64013
Time: 2020-10-29
Author: erogol@hotmail.com
File Name: TTS/bin/train_wavegrad.py
Class Name:
Method Name: format_test_data
Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: 0b0eabbfd972c9e3f6323bff9d39ac5fc3ba9cc7
Time: 2018-08-23
Author: yhhuang@nlg.csie.ntu.edu.tw
File Name: transformer/Translator.py
Class Name: Translator
Method Name: translate_batch