[GitHub] ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices
ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices URL: https://github.com/apache/incubator-mxnet/issues/8337#issuecomment-337796480 Sorry, I just paste the codes you posted at first comment, without adding slice. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices
ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices URL: https://github.com/apache/incubator-mxnet/issues/8337#issuecomment-337794800 I think the empty line in the error massage is the argument `''`. Please try replace `mx.nd.ones_like(b)` with `mx.nd.ones((1,))`, it works fine for me. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices
ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices URL: https://github.com/apache/incubator-mxnet/issues/8337#issuecomment-337792011 `a`'s shape is `(4,)`. Why "a's first dimension has length 1 and slicing it with 0:4 doesn't really make sense"? @piiswrong ``` >>> import numpy as np >>> a=np.ones((3,)) >>> a[0:2] array([ 1., 1.]) ``` @kpot Could you please use `da_sym.list_arguments() ` to see what are the arguments? Why `args=[mx.nd.ones_like(b), a]`? This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices
ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices URL: https://github.com/apache/incubator-mxnet/issues/8337#issuecomment-337792225 Is this a bug or wrong usage of autograd? Do you have any idea? @szha This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices
ZiyueHuang commented on issue #8337: mx.autograd.grad works or fails depending on use of slices URL: https://github.com/apache/incubator-mxnet/issues/8337#issuecomment-337792011 `a`'s shape is `(4,)`. Why "a's first dimension has length 1 and slicing it with 0:4 doesn't really make sense"? @piiswrong @kpot Could you please use `da_sym.list_arguments() ` to see what are the arguments? Why `args=[mx.nd.ones_like(b), a]`? This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services