Skip to content

Add failing test for pick indexing - #3843

Draft
alanocallaghan wants to merge 3 commits into
deepjavalibrary:masterfrom
alanocallaghan:test-indexing
Draft

Add failing test for pick indexing#3843
alanocallaghan wants to merge 3 commits into
deepjavalibrary:masterfrom
alanocallaghan:test-indexing

Conversation

@alanocallaghan

@alanocallaghan alanocallaghan commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Description

This PR demonstrates inconsistency in the behaviour of pick indices on MXNet and PyTorch.

Expectation

The code (similar to the implementation of softmax cross-entropy) should behave similarly across engines in DJL.

Current state

The test passes using the MXNet engine and OnnxRuntime ("not implemented" for TensorFlow) but fails using PyTorch with error:

shape '[1, 1, 1]' is invalid for input of size 5

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