Solved by smth in post #2 
              
              
                My network outputs a 3D tensor with shape (B x C x H x W) 

B,C,H,W is a 4D Tensor, that’s what make_grid wants, a batch of 3d images.