Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple outputs implementation #24

Open
Soumya-dutta opened this issue Dec 26, 2023 · 1 comment
Open

Multiple outputs implementation #24

Soumya-dutta opened this issue Dec 26, 2023 · 1 comment

Comments

@Soumya-dutta
Copy link

Hello,

Suppose my model returns multiple outputs. How should the functional approach be modified to handle this?

Thanks.

@luyug
Copy link
Owner

luyug commented Dec 27, 2023

With the grad cache decorator, you can return a tuple of tensors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants