Skip to content

Cheatsheet #1600

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

Merged
merged 40 commits into from
Apr 25, 2025
Merged

Cheatsheet #1600

merged 40 commits into from
Apr 25, 2025

Conversation

TomasPegado
Copy link
Contributor

Adds a first cheatsheet focused on numpy to nx

TomasPegado and others added 30 commits February 3, 2025 11:51
@@ -0,0 +1,153 @@
# Broadcasts
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a stray change.

You should probably try to reset your main branch as I think it diverged from Nx's

Comment on lines 44 to 47
Nx.iota({5}, axis: 0) |> Nx.multiply(2) # [0 2 4 6 8]

# Linearly Spaced Values
Nx.iota({5}) |> Nx.divide(4) # [0.0, 0.25, 0.5, 0.75, 1.0]
Copy link
Contributor

Choose a reason for hiding this comment

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

I think that instead of showing comments like this, we should use the iex> ... notation with results on the line below like it's done in docs/doctests

And do the equivalent for python

Copy link
Contributor

@polvalente polvalente left a comment

Choose a reason for hiding this comment

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

Looking great overall! Pretty exciting.

@polvalente polvalente merged commit f710a92 into elixir-nx:main Apr 25, 2025
8 checks passed
polvalente added a commit that referenced this pull request Apr 26, 2025
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

Successfully merging this pull request may close these issues.

5 participants