ec76b7d82d84bf8601c3b049f6d508303416c813,gluoncv/torch/data/video_cls/multigrid_helper.py,MultiGridBatchSampler,__len__,#MultiGridBatchSampler#,134
Before Change
remain = remain - (2**x)
if remain <= 0:
break
total = total + int(num_short%self.n_epoch_short >= remain)
return total
After Change
total += 1
if remain <= 0:
break
assert remain <= 0
return total
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: dmlc/gluon-cv
Commit Name: ec76b7d82d84bf8601c3b049f6d508303416c813
Time: 2021-02-26
Author: chunhuiliu960@gmail.com
File Name: gluoncv/torch/data/video_cls/multigrid_helper.py
Class Name: MultiGridBatchSampler
Method Name: __len__
Project Name: microsoft/nni
Commit Name: 8bc74a2c9f87674990ace81818ecac2ea9016ac9
Time: 2020-10-09
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/torch/speedup/compress_modules.py
Class Name:
Method Name: replace_conv2d
Project Name: chainer/chainercv
Commit Name: fe9b27b4e279a45a4aa16c3b289c4e600384b4da
Time: 2017-09-29
Author: yuyuniitani@gmail.com
File Name: tests/transforms_tests/image_tests/test_random_sized_crop.py
Class Name: TestRandomSizedCrop
Method Name: test_random_sized_crop