Expected 4-dimensional input for 4-dimensional weight [64, 3, 7, 7], but got input of size [8, 10, 3, 320, 320] instead
original_blob_conv = self.Conv_Body(im_data)
support_blob_conv = self.Conv_Body(support_data.squeeze(0))#
im_data is a data with 4-dimensional (8,3,600,800 )
support_data is a data with 5-dimensional(8,10,3,320,320 )
Expected 4-dimensional input for 4-dimensional weight [64, 3, 7, 7], but got input of size [8, 10, 3, 320, 320] instead original_blob_conv = self.Conv_Body(im_data) support_blob_conv = self.Conv_Body(support_data.squeeze(0))# im_data is a data with 4-dimensional (8,3,600,800 ) support_data is a data with 5-dimensional(8,10,3,320,320 )