Skip to content
Snippets Groups Projects
Commit f8d38ebf authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[Im2Col] bugfix in reshaping

parent e4acce85
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ class Im2Col(CustomOp):
# call NCHW im2col implementation
ret = im2col_indices_nchw(x, k, k, pad, stride, stride, pad_val=pad_val)
# result shape is (k*k*N, out_dim*out_dim), convert to NCHW
ret = ret.reshape(N, k * k * N, out_dim, out_dim)
ret = ret.reshape(N, k * k * C, out_dim, out_dim)
# convert output back to NHWC
ret = ret.transpose(0, 2, 3, 1)
context[node.output[0]] = ret
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment