You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tl;dr this is not possible with the current way this is structured.
Longer answer:
There's no general way to extract the arguments used to construct an object. On the other hand, if you wanted to use it for specific cases, this would have to be done with something like the add_representer in the current dump_hyperpyyaml where the to_yaml function tells the representer how to convert the class to a string:
I understand. Ideally, as a user I would appreciate something more towards how hydra manages to do this - not requiring extra effort from the users. I did not study how that works though - could be requiring some changes to how hyperpyyaml functions. For the time being, I just want to dump the configuration for certain speech processing pipeline segments - so I can get away with making a base class dumpable (according to your first snippet) and everything else can inherit. Thank you for the reply 👍
Hello,
I have the following code (a MWE - minimum working example), where I want to dump a config with a
!new
instatiation.This fails with the following
Neither the docs, nor the given Colab notebook contains an example of dumping with the
!new
tag. How could this be done?The text was updated successfully, but these errors were encountered: