Skip to content

Conversation

@Chapaman
Copy link
Contributor

At this point in the guide we have defined tensor as

tensor = Nx.tensor([[1, 2], [3, 4], [5, 6]], names: [:y, :x])

so using Nx.reshape(tensor, {1, 4}, names: [:batches, :values]) outputs an error. Changed it to {1, 4} to prevent this.

@polvalente polvalente merged commit 18780fd into elixir-nx:main Sep 16, 2025
@Chapaman Chapaman deleted the quickstart-fix branch September 17, 2025 09:12
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.

2 participants