stephenrawls commented on issue #14062: Bug in Hybridize w/ Concat
URL: 
https://github.com/apache/incubator-mxnet/issues/14062#issuecomment-461298379
 
 
   I see, thanks.
   
   Basically what I *wanted* to do is this:
   
   `begin=(0,0,0), end=(size_of_dim1,1,size_of_dim2)` but since this is 
symbolic mode I can't use use the size directly, and -1 will make my size too 
short by 1. I happened to notice behavior of ndarray was to take the full axis 
when both begin & end were 0, and I guess I tricked myself into thinking that 
was intentional behavior by ndarray, as opposed to the undefined behavior it 
apparently is.
   
   In this case I think I can use `slice_axis(axis=1,begin=0,end=1)` to get 
what I want.
   
   In general, it would be nice if dynamic shapes were supported and I didn't 
have to find "tricks" to get an array of the right shape. But this works for 
now.
   
   Thanks again!

----------------------------------------------------------------
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

Reply via email to