I have a grayscale image input with shape [4, 1, 32, 32]. I want to make the second parameter to 3, which will have three channels and shape becomes [4, 3, 32, 32]. Are there any methods that can achieve this using numpy? Thank you so much for your help in advance.
[4, 1, 32, 32]
[4, 3, 32, 32]
2.1m questions
2.1m answers
60 comments
57.0k users