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

Reshape wrong #4

Open
Jing-Luo opened this issue Apr 2, 2018 · 0 comments
Open

Reshape wrong #4

Jing-Luo opened this issue Apr 2, 2018 · 0 comments

Comments

@Jing-Luo
Copy link

Jing-Luo commented Apr 2, 2018

https://github.com/ZiyueHuang/MXShuffleNet/blob/master/symbol.py#L11

In shuffle operation, the code should be

data = mx.sym.reshape(data, shape=(0, -4, channels // groups, -1, -2))

For example,
(256, 60, 28, 28) should be reshaped to (256, 20, 3, 28, 28) and then we swap axes to (256, 3, 20, 28, 28) and reshape back.

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