Flamefire opened a new issue #14786: Documentation of ToTensor shows wrong range
URL: https://github.com/apache/incubator-mxnet/issues/14786
 
 
   As stated e.g. at 
https://beta.mxnet.io/api/gluon/_autogen/mxnet.gluon.data.vision.transforms.ToTensor.html#mxnet.gluon.data.vision.transforms.ToTensor
 the `ToTensor` transform is defined as
   
   > Converts an image NDArray of shape (H x W x C) in the range [0, 255] to a 
float32 tensor NDArray of shape (C x H x W) in the range [0, 1).
   
   However the implementation does not fulfil this. It converts the image into 
the range `[0,1]` (*including* 1). This is due to a scaling factor of `255` 
used which obviously converts a `255` input to an output of  `1`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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