c45c30b6a0efd72f8bd3d3de67655dfe58bcfc4e,examples/model_compress/models/mobilenet_v2.py,MobileNetV2,forward,#MobileNetV2#Any#,109
Before Change
def forward(self, x):
x = self.features(x)
x = x .mean(3 ).mean(2)
x = self.classifier(x)
return x
After Change
// it"s same with .mean(3).mean(2), but
// speedup only suport the mean option
// whose output only have two dimensions
x = x.mean([2, 3] )
x = self.classifier(x)
return x
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances Project Name: microsoft/nni
Commit Name: c45c30b6a0efd72f8bd3d3de67655dfe58bcfc4e
Time: 2020-08-24
Author: 49771382+zheng-ningxin@users.noreply.github.com
File Name: examples/model_compress/models/mobilenet_v2.py
Class Name: MobileNetV2
Method Name: forward
Project Name: NifTK/NiftyNet
Commit Name: fa7ee697076d2061faeaf7ebf20cdcd5da352eae
Time: 2018-10-30
Author: elias.tappeiner@umit.at
File Name: tests/application_driver_test.py
Class Name: ApplicationDriverTest
Method Name: test_multi_device_multi_optimiser_gradients
Project Name: microsoft/nni
Commit Name: c45c30b6a0efd72f8bd3d3de67655dfe58bcfc4e
Time: 2020-08-24
Author: 49771382+zheng-ningxin@users.noreply.github.com
File Name: examples/model_compress/models/mobilenet.py
Class Name: MobileNet
Method Name: forward
Project Name: deepchem/deepchem
Commit Name: 3ddc610f3c116c1b4c498a258cc16a0804f19094
Time: 2020-10-21
Author: nd.12021218@gmail.com
File Name: deepchem/feat/molecule_featurizers/mol2vec_fingerprint.py
Class Name: Mol2VecFingerprint
Method Name: _featurize