62b9b6ffdcba80685b7374b5d0e46d2c05873be7,pyprob/nn/inference_network.py,InferenceNetwork,_pre_generate_layers,#InferenceNetwork#Any#Any#,200

Before Change


            raise ValueError("Expecting a BatchGeneratorOffline.")

        if not self._layers_initialized:
            self._init_layers_observe_embedding(self._observe_embeddings, example_trace=next(batch_generator_offline.batches(1))[0])
            self._init_layers()
            self._layers_initialized = True

After Change


        super().to(device=device, *args, *kwargs)

    def _pre_generate_layers(self, dataset, auto_save_file_name_prefix=None):
        print("Layer pre-generation")
        if not self._layers_initialized:
            self._init_layers_observe_embedding(self._observe_embeddings, example_trace=dataset.__getitem__(0))
            self._init_layers()
            self._layers_initialized = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: pyprob/pyprob
Commit Name: 62b9b6ffdcba80685b7374b5d0e46d2c05873be7
Time: 2018-12-04
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/nn/inference_network.py
Class Name: InferenceNetwork
Method Name: _pre_generate_layers


Project Name: HyperGAN/HyperGAN
Commit Name: cf6b0e8378642f2b25a3b8cf8615fa135fb421d2
Time: 2018-07-15
Author: mikkel@255bits.com
File Name: hypergan/trainers/gang_trainer.py
Class Name: GangTrainer
Method Name: nash_mixture_from_payoff


Project Name: deepchem/deepchem
Commit Name: f1db4fdcc66d4dbc29e326af331e3415af3f6725
Time: 2016-03-25
Author: rbharath@stanford.edu
File Name: deepchem/scripts/process_vs_datasets.py
Class Name:
Method Name: generate_csv