Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Removes unnessary flatten #50

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

amirhmk
Copy link
Contributor

@amirhmk amirhmk commented Apr 5, 2023

This PR fixes #48 by removing the unnessary flatten() that was causing the following error in examples/pytorch and examples/keras:

{"detail":"Error processing request: <AioRpcError of RPC that terminated with:\n\tstatus = StatusCode.INVALID_ARGUMENT\n\tdetails = \"unexpected shape for input 'INPUT__0' for model 'test_model_pytorch'. Expected [1,28,28], got [1,784]\"\n\tdebug_error_string = \"{\"created\":\"@1680665060.017267956\",\"description\":\"Error received from peer ipv4:172.23.0.5:8001\"

This simply makes the input adhere to the shape defined in the tutorial, and one that the model also accepts.

@jkhenning
Copy link
Member

Hi @amirhmk , sorry for the delay, we'll take a look at this 👍

@jkhenning jkhenning merged commit 41df4eb into allegroai:main Apr 11, 2023
@amirhmk amirhmk deleted the fix-example-shape-issue branch April 12, 2023 06:01
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect shape size PyTorch
2 participants