Example #1
0
        public static Tensor BatchNorm(Tensor input, Tensor scale, Tensor offset)
        {
            var channels = scale.Shape[0];
            var kernel   = channels == 512 ? "BatchNorm512" : "BatchNorm64";

            return(GpuHelper.InvokeBatchNormKernel(kernel, input, scale, offset));
        }
Example #2
0
        public static Tensor BatchNorm(Tensor input, Tensor scale, Tensor offset)
        {
            var kernel = "BatchNorm" + scale.Shape[0];

            return(GpuHelper.InvokeBatchNormKernel(kernel, input, scale, offset));
        }
Example #3
0
 public static Tensor BatchNorm(Tensor input, Tensor scale, Tensor offset)
 {
     return(GpuHelper.InvokeBatchNormKernel(input, scale, offset));
 }