i’m using MMdnn for convert Tensorflow model to pytorch when i’m going to load the model i have this error
RuntimeError: Given groups=1, weight of size 9480 1024 1 1, expected input[1, 1, 1, 1024] to have 1024 channels, but got 1 channels instead
Your input seems to be created in a channels-last memory layout, while PyTorch expects channels-first tensors in the shape [batch_size, channels, height, width].
Assuming your current input has the shape [batch_size, height, width, channels] you could permute the input tensor via: