-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Structured Configs with URL for torch.optim and torch.utils.data #18
base: main
Are you sure you want to change the base?
Changes from 3 commits
9d5decd
42c0da8
31bd189
3554c17
ced1ecb
3fff4b7
f596a5f
e074842
752fc1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# Generated by configen, do not edit. | ||
# See https://github.com/facebookresearch/hydra/tree/master/tools/configen | ||
|
@@ -13,6 +14,7 @@ | |
|
||
@dataclass | ||
class AdadeltaConf: | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what are you changing the formatting of generated code? |
||
_target_: str = "torch.optim.adadelta.Adadelta" | ||
params: Any = MISSING | ||
lr: Any = 1.0 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# Generated by configen, do not edit. | ||
# See https://github.com/facebookresearch/hydra/tree/master/tools/configen | ||
|
@@ -13,6 +14,9 @@ | |
|
||
@dataclass | ||
class AdagradConf: | ||
"""For more details on parameteres please refer to the original documentation: | ||
https://pytorch.org/docs/stable/optim.html#torch.optim.Adagrad | ||
""" | ||
Comment on lines
+17
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's hold on with this change until we finalize the change to configen. This is not urgent and we can do it with configen once it's ready. |
||
_target_: str = "torch.optim.adagrad.Adagrad" | ||
params: Any = MISSING | ||
lr: Any = 0.01 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright (c) 2020 Facebook, Inc. and its affiliates. All Rights Reserved | ||
# SPDX-License-Identifier: MIT | ||
# | ||
# Generated by configen, do not edit. | ||
# See https://github.com/facebookresearch/hydra/tree/master/tools/configen | ||
# fmt: off | ||
# isort:skip_file | ||
# flake8: noqa | ||
|
||
from dataclasses import dataclass, field | ||
from omegaconf import MISSING | ||
from typing import Any | ||
|
||
|
||
@dataclass | ||
class DataLoaderConf: | ||
"""For more details on parameteres please refer to the original documentation: | ||
https://pytorch.org/docs/stable/data.html#torch.utils.data.DataLoader | ||
""" | ||
_target_: str = "torch.utils.data.DataLoader" | ||
dataset: Any = MISSING | ||
batch_size: Any = 1 | ||
shuffle: Any = False | ||
sampler: Any = None | ||
batch_sampler: Any = None | ||
num_workers: Any = 0 | ||
collate_fn: Any = None | ||
pin_memory: Any = False | ||
drop_last: Any = False | ||
timeout: Any = 0 | ||
worker_init_fn: Any = None | ||
multiprocessing_context: Any = None | ||
generator: Any = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not change the headers until we resolve the discussion about it.