b56a4b355dfc302fa449d223e065af3a7acac986,snorkel/learning/pytorch/noise_aware_model.py,TorchNoiseAwareModel,load,#TorchNoiseAwareModel#,252
Before Change
model_dir = os.path.join(save_dir, model_name)
// Load model kwargs needed to rebuild model
with open(os.path.join(model_dir, "model_kwargs.pkl"), "rb") as f:
model_kwargs = load(f)
// Create new graph, build network, and start session
After Change
warnings.warn("Unstable! Please extensively test this part of the code when time permits")
self.load_state_dict(
torch.load("{}/model.params".format(model_dir))
)
if verbose:
print("[{0}] Loaded model <{1}>".format(self.name, model_name))
else:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances Project Name: snorkel-team/snorkel
Commit Name: b56a4b355dfc302fa449d223e065af3a7acac986
Time: 2018-05-03
Author: dnicholson329@gmail.com
File Name: snorkel/learning/pytorch/noise_aware_model.py
Class Name: TorchNoiseAwareModel
Method Name: load
Project Name: jadore801120/attention-is-all-you-need-pytorch
Commit Name: d5ca7331d0fec71a409e4df2629eda0e632640a6
Time: 2019-12-08
Author: jadore801120@gmail.com
File Name: train.py
Class Name:
Method Name: prepare_dataloaders_from_bpe_files
Project Name: sentinel-hub/eo-learn
Commit Name: 05bd0a48c7886e81ecd8a0b6183a01cd65e6be72
Time: 2019-12-18
Author: jovan.visnjic@sinergise.com
File Name: core/eolearn/core/eodata.py
Class Name: EOPatch
Method Name: load_aws_new
Project Name: lcswillems/torch-rl
Commit Name: 3f196bcdd1e0310208e8978cf4f1fb590614568b
Time: 2018-04-15
Author: lcswillems@gmail.com
File Name: utils.py
Class Name:
Method Name: load_model