I solved it this way: I stacked 3 copies of my input so that it has three channels and then I made the first operation as x = torch.mean(x,dim=1) in the forward method of the DL model…! The results from the app and from the computer are almost similar.