Experts, is this a problem to convert [1, 512, 512, 3] into [1,3, 512, 512]? If so, where do I need to modify it?
Use (batch_size, channels, height, width) as your input, not (batch_size, height, width, channels).
Thank you for your confirmation. The problem has been solved