You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/11/25 13:45:41 UTC
[GitHub] [incubator-mxnet] m-ky opened a new issue #19586: MKLDNN error in mx.sym.Concat
m-ky opened a new issue #19586:
URL: https://github.com/apache/incubator-mxnet/issues/19586
## Description
When using MKLDNN, concatenating sometimes fails and results in error. Please see the code.
### Error Message
MXNetError: The size of NDArray doesn't match the requested MKLDNN memory desc. MKLDNN memory requests for 41943040 bytes, but got 34603008 bytes from NDArray
## To Reproduce
x = mx.sym.Variable('x')
w = mx.sym.Variable('w')
c = mx.sym.Convolution(data=x, weight=w, num_filter=32, kernel=(3, 3), pad=(1, 1), no_bias=True)
n = mx.sym.concat(c, x, dim=1)
context = mx.cpu()
ex = n.simple_bind(context, x=(1, 1, 512, 512))
data = mx.nd.ones(ex.arg_arrays[0].shape, ctx=context)
weight = mx.nd.ones(ex.arg_arrays[1].shape, ctx=context)
data.copyto(ex.arg_arrays[0])
weight.copyto(ex.arg_arrays[1])
res = ex.forward()
print(res)
### Steps to reproduce
Simply run the provided script
## What have you tried to solve it?
If variable x is first tiled to have at least 8 channels (dimension 1), then it works:
c = mx.sym.Convolution(data=x, weight=w, num_filter=32, kernel=(3, 3), pad=(1, 1), no_bias=True)
x = mx.sym.tile(x, (1, 8, 1, 1))
n = mx.sym.concat(c, x, dim=1)
Another way is to reverse the order of concatenation:
n = mx.sym.concat(x, c, dim=1)
## Environment
MXNet 1.8.0.rc2, Windows 10, build with MKLDNN
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org
[GitHub] [incubator-mxnet] szha closed issue #19586: MKLDNN error in mx.sym.Concat
Posted by GitBox <gi...@apache.org>.
szha closed issue #19586:
URL: https://github.com/apache/incubator-mxnet/issues/19586
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org
[GitHub] [incubator-mxnet] PawelGlomski-Intel commented on issue #19586: MKLDNN error in mx.sym.Concat
Posted by GitBox <gi...@apache.org>.
PawelGlomski-Intel commented on issue #19586:
URL: https://github.com/apache/incubator-mxnet/issues/19586#issuecomment-749532262
I am working on this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org
[GitHub] [incubator-mxnet] anko-intel commented on issue #19586: MKLDNN error in mx.sym.Concat
Posted by GitBox <gi...@apache.org>.
anko-intel commented on issue #19586:
URL: https://github.com/apache/incubator-mxnet/issues/19586#issuecomment-735678272
@mxnet-label-bot add [MKLDNN]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org
[GitHub] [incubator-mxnet] anko-intel commented on issue #19586: MKLDNN error in mx.sym.Concat
Posted by GitBox <gi...@apache.org>.
anko-intel commented on issue #19586:
URL: https://github.com/apache/incubator-mxnet/issues/19586#issuecomment-734181964
@mxnet-label-bot MKLDNN
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org
[GitHub] [incubator-mxnet] bartekkuncer commented on issue #19586: MKLDNN error in mx.sym.Concat
Posted by GitBox <gi...@apache.org>.
bartekkuncer commented on issue #19586:
URL: https://github.com/apache/incubator-mxnet/issues/19586#issuecomment-733815695
Simillar error on linux:
MXNetError: The size of NDArray doesn't match the requested MKLDNN memory desc. MKLDNN memory requests for 50331648 bytes, but got 34603008 bytes from NDArray
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org