Skip to content

Fix concatenation along negative batch axes - #104

Open
sylvesterkaczmarek wants to merge 2 commits into
google-research:mainfrom
sylvesterkaczmarek:fix-concat-batch-axis
Open

sylvesterkaczmarek wants to merge 2 commits into
google-research:mainfrom
sylvesterkaczmarek:fix-concat-batch-axis

Conversation

@sylvesterkaczmarek

Copy link
Copy Markdown

concat normalizes axes with ndim + 1, shifting negative axes into another batch dimension or an inner field dimension.

Use the operation’s output dimensionality for axis normalization. Add NumPy, JAX, TensorFlow and PyTorch coverage for negative axes, nested dataclasses, values and invalid axes. Stack behavior is unchanged.

Validation: python -m pytest -q dataclass_array passes all 424 tests. Twenty-two regression cases fail on unchanged upstream. Syntax parsing and git diff --check pass.

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.

1 participant