77e91e8bc57cefadc8607a0866ab51ba33b01762,src/sdk/pynni/nni/nas/pytorch/mutator.py,Mutator,export,#Mutator#,11
Before Change
def export(self):
if self._in_forward_pass:
raise RuntimeError("Still in forward pass. Exporting might induce incompleteness.")
if not self._cache:
raise RuntimeError("No running history found. You need to call your model at least once before exporting. "
"You might also want to check if there are no valid mutables in your model.")
return self._cache
@contextmanager
def forward_pass(self):
After Change
-------
dict
return self.sample_final()
def on_forward_layer_choice(self, mutable, *inputs):
On default, this method calls :meth:`on_calc_layer_choice_mask` to get a mask on how to choose between layers
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: microsoft/nni
Commit Name: 77e91e8bc57cefadc8607a0866ab51ba33b01762
Time: 2019-11-20
Author: v-yugzh@microsoft.com
File Name: src/sdk/pynni/nni/nas/pytorch/mutator.py
Class Name: Mutator
Method Name: export
Project Name: allenai/allennlp
Commit Name: be97943a42e55ac68c75794187a1c84be5f8d898
Time: 2020-08-31
Author: mattg@allenai.org
File Name: allennlp/common/from_params.py
Class Name:
Method Name: infer_params
Project Name: tensorlayer/tensorlayer
Commit Name: 87cbca654f759f6ee30e584d401d5bbf7016a356
Time: 2019-04-24
Author: 37874862+warshallrho@users.noreply.github.com
File Name: tensorlayer/layers/core.py
Class Name: Layer
Method Name: config