updates to new neptune
This commit is contained in:
parent
cde1e87a19
commit
0dc9544952
|
@ -8,14 +8,14 @@ from dataclasses import asdict
|
||||||
from torch.utils.tensorboard import SummaryWriter
|
from torch.utils.tensorboard import SummaryWriter
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import neptune.new as neptune
|
import neptune
|
||||||
except ModuleNotFoundError:
|
except ModuleNotFoundError:
|
||||||
raise ModuleNotFoundError("neptune-client is required to log to Neptune.")
|
raise ModuleNotFoundError("neptune-client is required to log to Neptune.")
|
||||||
|
|
||||||
|
|
||||||
class NeptuneLogger:
|
class NeptuneLogger:
|
||||||
def __init__(self, project, token):
|
def __init__(self, project, token):
|
||||||
self.run = neptune.init(project=project, api_token=token)
|
self.run = neptune.init_run(project=project, api_token=token)
|
||||||
|
|
||||||
def store_config(self, env_cfg, runner_cfg, alg_cfg, policy_cfg):
|
def store_config(self, env_cfg, runner_cfg, alg_cfg, policy_cfg):
|
||||||
self.run["runner_cfg"] = runner_cfg
|
self.run["runner_cfg"] = runner_cfg
|
||||||
|
|
Loading…
Reference in New Issue