szha commented on issue #7802: how can i do a image mean substraction operation in symbol? URL: https://github.com/apache/incubator-mxnet/issues/7802#issuecomment-327987249 @dyzhou2015 yes, it's doable, though it may become verbose in symbol. Mean subtraction can be regarded as a broadcast subtraction operation. You can use [sym.ones](https://mxnet.apache.org/api/python/symbol.html#mxnet.symbol.ones) and [sym.concat](https://mxnet.apache.org/api/python/symbol.html#mxnet.symbol.concat) to create the vector for image mean, and then [sym.broadcast_sub](https://mxnet.apache.org/api/python/symbol.html#mxnet.symbol.broadcast_sub) for the mean subtraction. There may be better solutions out there, and this is one solution that I can think of. ---------------------------------------------------------------- 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
