94ac3164554637619341f7af72408fcddb4e5c4b,tests/test_tensor_transforms.py,,test_image_transforms_runtime,#,264
Before Change
tforms.update(ToTensor_setup())
tforms.update(ToVariable_setup())
tforms.update(ToCuda_setup())
tforms.update(ToFile_setup())
tforms.update(ChannelsLast_setup())
tforms.update(ChannelsFirst_setup())
tforms.update(TypeCast_setup())
tforms.update(AddChannel_setup())
After Change
images.update(color2d_setup())
images.update(multi_color2d_setup())
successes =[]
failures = []
for im_key, im_val in images.items():
for tf_key, tf_val in tforms.items():
try:
if isinstance(im_val, (tuple,list)):
tf_val(*im_val)
else:
tf_val(im_val)
successes.append((im_key, tf_key))
except:
failures.append((im_key, tf_key))
if verbose > 0:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: ncullen93/torchsample
Commit Name: 94ac3164554637619341f7af72408fcddb4e5c4b
Time: 2017-05-13
Author: ncullen.th@dartmouth.edu
File Name: tests/test_tensor_transforms.py
Class Name:
Method Name: test_image_transforms_runtime
Project Name: cve-search/cve-search
Commit Name: 98642f1a9ed41d31cbd43a9c7407b0ca68f08823
Time: 2015-10-24
Author: pieterjan.moreels@gmail.com
File Name: sbin/db_mgmt_capec.py
Class Name:
Method Name:
Project Name: WheatonCS/Lexos
Commit Name: 926c9ea2e480693701aaa0d61e85c67dbba672cb
Time: 2017-08-14
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/topword.py
Class Name:
Method Name: _z_test_word_list_