5c96b82c3c86dde8250aa371aff958872a62008e,src/sdk/pynni/nni/nas/pytorch/pdarts/mutator.py,PdartsMutator,drop_paths,#PdartsMutator#,37
Before Change
// for the last stage, drop all Zero operations
drop = self.get_min_k_no_zero(prob, idxs, self.pdarts_num_to_drop[self.pdarts_epoch_index])
else:
drop = self.get_min_k(prob, self.pdarts_num_to_drop[self.pdarts_epoch_index] )
for idx in drop:
switches[idxs[idx]] = False
After Change
if switches[j]:
idxs.append(j)
sorted_weights = self.choices[key].data.cpu().numpy()[:-1]
drop = np.argsort(sorted_weights)[:self.pdarts_num_to_drop[self.pdarts_epoch_index]]
for idx in drop:
switches[idxs[idx]] = False
return all_switches
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: microsoft/nni
Commit Name: 5c96b82c3c86dde8250aa371aff958872a62008e
Time: 2019-12-02
Author: 27178119+squirrelsc@users.noreply.github.com
File Name: src/sdk/pynni/nni/nas/pytorch/pdarts/mutator.py
Class Name: PdartsMutator
Method Name: drop_paths
Project Name: tryolabs/luminoth
Commit Name: 8dd1ec5bfef42af8ad75a38a4ac6d58e7d7763c9
Time: 2017-10-09
Author: javirey@gmail.com
File Name: luminoth/utils/image_vis.py
Class Name:
Method Name: draw_rpn_bbox_pred
Project Name: chainer/chainercv
Commit Name: 5b36f836715758d83733531ad2253775b476a764
Time: 2017-05-08
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/ssd/ssd.py
Class Name: SSD
Method Name: _suppress