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

Fix issues with mismatched templates #450

Merged
merged 1 commit into from
Jan 16, 2023
Merged

Fix issues with mismatched templates #450

merged 1 commit into from
Jan 16, 2023

Conversation

seanmor5
Copy link
Contributor

@seanmor5 seanmor5 commented Jan 16, 2023

Resolves #443 and Resolves #432

@seanmor5 seanmor5 merged commit 36f160e into main Jan 16, 2023
@seanmor5 seanmor5 deleted the sm-fix-types branch January 16, 2023 23:11

{gradients, model_state, new_state, optimizer_state, acc_gradients, gradient_step + 1,
Nx.tensor(0)}
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, both branches return Nx.tensor(0). Doesn't it mean you ever only do a single pass anyway?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I'm pretty sure this is how I got around larger graphs with if, iirc this reduces memory usage slightly

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