Exemple #1
0
        public static void kernel_V_Tanh(Index pos, ArrayView <float> output, ArrayView <float> arr)
        {
            int x = pos.X;

            output[x] = GPUMath.Tanh(arr[x]);
        }
Exemple #2
0
        public static void _V_Tanh(Index size, ArrayView <float> output, ArrayView <float> v)
        {
            var x = size.X;

            output[x] = GPUMath.Tanh(v[x]);
        }