It looks a bit strange.
I assumed your tensor has a shape of [channels, height, width], which should yield a clean output of the different color values.
Are you using an additional batch dimension?
If so, could you slice the tensor and run the code again?
Anyway, the values look a bit fishy and something might be wrong.
Could you also try to plot the image using e.g. matplotlib?