4d8cca40654deb641809bf8fb376afd9b1633d52,nlp_architect/api/machine_comprehension_api.py,MachineComprehensionApi,download_model,#MachineComprehensionApi#,70

Before Change


            data_zip_ref = zipfile.ZipFile(data_zipfile, "r")
            data_zip_ref.extractall(self.data_dir)
            data_zip_ref.close()
            model_zip_ref = zipfile.ZipFile(model_zipfile, "r")
            model_zip_ref.extractall(self.model_dir)
            model_zip_ref.close()

    def load_model(self):

After Change


                                     "mrc_model.zip", model_zipfile)
            with zipfile.ZipFile(data_zipfile) as data_zip_ref:
                data_zip_ref.extractall(self.data_dir)
            with zipfile.ZipFile(model_zipfile) as model_zip_ref:
                model_zip_ref.extractall(self.model_dir)

    def load_model(self):
        select_device = "GPU"
        restore_model = True
        // Create dictionary of filenames
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/nlp-architect
Commit Name: 4d8cca40654deb641809bf8fb376afd9b1633d52
Time: 2019-03-31
Author: daniel.korat@intel.com
File Name: nlp_architect/api/machine_comprehension_api.py
Class Name: MachineComprehensionApi
Method Name: download_model


Project Name: AIRLab-POLIMI/mushroom
Commit Name: f43e34a990ef0f9bfa6ac055c79a2f62c6b6b322
Time: 2020-04-22
Author: boris.ilpossente@hotmail.it
File Name: mushroom_rl/core/serialization.py
Class Name: Serializable
Method Name: save


Project Name: AIRLab-POLIMI/mushroom
Commit Name: f43e34a990ef0f9bfa6ac055c79a2f62c6b6b322
Time: 2020-04-22
Author: boris.ilpossente@hotmail.it
File Name: mushroom_rl/core/serialization.py
Class Name: Serializable
Method Name: load