piyushghai commented on issue #12814: MXPredReshape always fails (return -1) - 
MXNet 1.3.0 c++
URL: 
https://github.com/apache/incubator-mxnet/issues/12814#issuecomment-429420754
 
 
   @johnbroughton2017 Looking at the code snippet you pasted, 
   Specifically : ```const mx_uint input_shape_data[4] = { batch_size, 
input_depth, input_height, input_width };```
   
   What are the values of ```input_height``` and ```input_width``` ? 
   
   Because you are reshaping it to : 
   ```const mx_uint new_input_shape_data[4] = { batch_size, input_depth, 512, 
512 };```
   
   So for the reshape to work, the product of : 
   ```batch_size * input_depth * input_height * input_width``` should be equal 
to ```batch_size * input_depth * 512 * 512 ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to