how to put trainer.fit()
in for loop?
#8380
-
I am trying to create multiple model using loop as below.
However,
As this is an async method, it gives an error
as it doesn't wait for finishing Is there any way to do that? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi! I'm not entirely sure, but I don't see why the code snippets you shared would not work.
What do you mean exactly by "async" method?
Can you share the full error stacktrace and your Lightning version? |
Beta Was this translation helpful? Give feedback.
Hi!
I'm not entirely sure, but I don't see why the code snippets you shared would not work.
What do you mean exactly by "async" method?
Can you share the full error stacktrace and your Lightning version?