Skip to content
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

Bug in ImportMobileNetExample #1031

Open
MrForum opened this issue May 3, 2021 · 0 comments
Open

Bug in ImportMobileNetExample #1031

MrForum opened this issue May 3, 2021 · 0 comments

Comments

@MrForum
Copy link

MrForum commented May 3, 2021

I get the following Exception running ImportMobileNetExample with a native backend:

Exception in thread "main" java.lang.IllegalArgumentException: Incorrect number of arguments for permute function: got arguments [0, 2, 3, 1] for rank 5 array. Number of arguments must equal array rank
at org.nd4j.common.base.Preconditions.throwEx(Preconditions.java:636)
at org.nd4j.common.base.Preconditions.checkArgument(Preconditions.java:137)
at org.nd4j.linalg.api.ndarray.BaseNDArray.permute(BaseNDArray.java:4758)
at mobilenet.ImportMobileNetExample.inceptionPreprocessing(ImportMobileNetExample.java:104)
at mobilenet.ImportMobileNetExample.main(ImportMobileNetExample.java:38)

Code throwing the exception:
// change to channels-last
img = img.permute(0, 2, 3, 1);

Any help would be appreciated.

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

No branches or pull requests

1 participant