Question about save_hyperparameters() #5794
Unanswered
LindaSt
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
@LindaSt Hi, could you provide the full stack trace and your full script? |
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
-
❓ Questions and Help
Before asking:
I have a question (maybe a bug?) regarding the
save_hyperparameters()
function. I was trying to use to default setting without passing any arguments, but I got an error during the yaml saving. According to issue #4046 the reason is probably that I am passing my model as a parameter and that is a too complex object to save. So I thought I'd opt for manually saving the hyperparameters as following:I get the following error for the lines that don't work:
{ValueError}The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
According to the documentation I've read about
save_hyperparameters()
it should be possible to pass a dictionary as well. I don't quite understand what is not working for me here.What's your environment?
Beta Was this translation helpful? Give feedback.
All reactions