084a3890db88043634ccbb3974f1ef584e19dfd5,mmdet/datasets/loader/sampler.py,GroupSampler,__iter__,#GroupSampler#,51
Before Change
range(len(indices) // self.samples_per_gpu))
]
indices = np.concatenate(indices)
indices = torch.from_numpy(indices).long()
assert len(indices) == self.num_samples
return iter(indices)
After Change
range(len(indices) // self.samples_per_gpu))
]
indices = np.concatenate(indices)
indices = indices.astype(np.int64).tolist()
assert len(indices) == self.num_samples
return iter(indices)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: open-mmlab/mmdetection
Commit Name: 084a3890db88043634ccbb3974f1ef584e19dfd5
Time: 2019-07-08
Author: 1155098160@link.cuhk.edu.hk
File Name: mmdet/datasets/loader/sampler.py
Class Name: GroupSampler
Method Name: __iter__
Project Name: yhenon/pytorch-retinanet
Commit Name: 83dc25dbc8b4ed98b4cc952e3cb35668e5a65490
Time: 2018-06-12
Author: yannhenon@gmail.com
File Name: dataloader.py
Class Name: ToTensor
Method Name: __call__
Project Name: kengz/SLM-Lab
Commit Name: c1cbd1b88424b93b085710d866b35e55b937da65
Time: 2019-05-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/hydra_dqn.py
Class Name: HydraDQN
Method Name: space_act
Project Name: kengz/SLM-Lab
Commit Name: c1cbd1b88424b93b085710d866b35e55b937da65
Time: 2019-05-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/policy_util.py
Class Name:
Method Name: try_preprocess