Exemplo n.º 1
0
 public TorchTensor forward(TorchTensor input)
 {
     if (means.size(1) != input.size(1))
     {
         throw new ArgumentException("The number of channels is not equal to the number of means and standard deviations");
     }
     return((input - means) / stdevs);
 }