7b27ce2b236e29d82e33c5e07645f845d433973c,python/ray/util/sgd/torch/torch_runner.py,TorchRunner,__init__,#TorchRunner#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,43
Before Change
self.validation_loader = None
self.use_fp16 = use_fp16
self.apex_args = apex_args or {}
if use_fp16 and not amp:
raise ImportError(
"Please install apex from "
"https://www.github.com/nvidia/apex to use fp16 training.")
self.scheduler_step_freq = scheduler_step_freq
def _validate_loaders(self, loaders):
assert loaders, "Loaders need to be returned in data_creator."
After Change
self.scheduler_step_freq = scheduler_step_freq
def _validate_loaders(self, loaders):
assert loaders, "Loaders need to be returned in data_creator."
if isinstance(loaders, (tuple, list)):
if len(loaders) == 1:
return loaders, None
elif len(loaders) == 2:
return loaders
else:
raise ValueError(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: ray-project/ray
Commit Name: 7b27ce2b236e29d82e33c5e07645f845d433973c
Time: 2020-03-27
Author: maximsmol@gmail.com
File Name: python/ray/util/sgd/torch/torch_runner.py
Class Name: TorchRunner
Method Name: __init__
Project Name: Epistimio/orion
Commit Name: 05cb9508a1281d02de8009fe1d333a26670fe966
Time: 2021-03-30
Author: breuleux@gmail.com
File Name: src/orion/storage/track.py
Class Name: Track
Method Name: __init__
Project Name: Epistimio/orion
Commit Name: 3860c9c27e43d880370c714944043d63cfa2097d
Time: 2021-04-06
Author: xavier.bouthillier@umontreal.ca
File Name: src/orion/storage/track.py
Class Name: Track
Method Name: __init__