Jit script does not contain hparams #10817
Unanswered
simeneide
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
not sure, but I think I read somewhere that while scripting, pytorch ignores all the custom data structures during compilation to torchscript module. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
when I try to script my pl module it does not seem to compile the hparams attributes, which I need. An simple example:
gives the error
I can make it work by saving a separate hparams_dict, but this feels a bit clumsy:
I am running the following on debian:
Is this how it is supposed to work? Or is it possible to add support for this? :)
Beta Was this translation helpful? Give feedback.
All reactions