@alykhantejani @jasonkriss @vfdev-5
Hey, thanks for posting this great framework for training pytorch model.
If a project need to train two models but with variable number of outputs (like y_pred, other_output = model(x)), do I have to create two self-defined create_supervised_trainer? any suggestion for this case?
Have a good day.
@walkacross actually create_supervised_trainer is a helper method to create a trainer, feel free to copy and edit it locally in your application to satisfy your needs.
If your model outputs like this y_pred, other_output = model(x) you can have two possibilities:
create_supervised_trainer and adapt loss function to handle this particular outputy to the standard loss functionsHTH
@vfdev-5 get it and thanks for your kind reply.
@walkacross feel free to ask and take a look at not yet released documentation: concepts, quickstart and examples. Here I made some more examples.
And if you are OK with this issue, could you please close it and reopen if needed
Most helpful comment
@walkacross feel free to ask and take a look at not yet released documentation: concepts, quickstart and examples. Here I made some more examples.
And if you are OK with this issue, could you please close it and reopen if needed