Repository navigation
DOC: show two input core dimensions in apply_ufunc - #386
Open
Himanshuagrawal4 wants to merge 2 commits into
Open
Himanshuagrawal4 wants to merge 2 commits into
Himanshuagrawal4 wants to merge 2 commits into
Conversation
|
Notebooks changed:
Review visual diffs and comment on any notebook cell. All comments sync back to this PR. Powered by ReviewNB |
for more information, see https://pre-commit.ci
Himanshuagrawal4
marked this pull request as ready for review
December 2, 2026 19:57
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a small matrix-norm example to the core dimensions lesson. It shows how
input_core_dims=[["y", "x"]]moves both core dimensions to the last two axes even when the broadcast dimension is between them in the input. The result retainssampleand its labels.Refs #158.
Validation
Validated the notebook structure and ran the new cell locally. It returned the expected values 5 and 12 with the original sample coordinates. The full tutorial site was not built.
AI disclosure
OpenAI Codex assisted with the notebook changes, local checks, and this draft description. The changes were manually reviewed before opening this draft.