-
Notifications
You must be signed in to change notification settings - Fork 3
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
Can a Config be wrapped with Variable? #16
Comments
This is actually a bug, or more precisely, two bugs.
from chanfig import Config, Variable
from . import data as data_cfg
class BaseConfig(Config):
def __init__(self) -> None:
super().__init__()
self.train_data: Config = Variable(data_cfg.ImageNet)
self.train_args: Config = Config({
'data': self.train_data,
}) Somehow merge did not recognised it correctly. |
Fixed now, will work on it next week. |
Fixed in e62919a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For now, I am using this code to get train_args.
Can the Config be wrapped with Variable such that we could do so?
and when run with
--train_data.name
, thetrain_args.data.name
also changed?The text was updated successfully, but these errors were encountered: