szha commented on issue #7236: change unnecessarily longer array
URL: https://github.com/apache/incubator-mxnet/pull/7236#issuecomment-318754542
 
 
   @rahul003 just keep the size as a constant 4 should be fine. It's constant 
space, and n_channels is either 1, 3 or 4. Saving at most 3*sizeof(DType) 
doesn't change much, and in the alternative, you can keep the array on stack.
 
----------------------------------------------------------------
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