softmax_prime

softmax_prime(x)

Derivation of the softmax activation function.

derivation:

f’(x) = f(x) * (1 - f(x))

Parameters

x (Tensor) – input to the function

Returns

f’(x), applies derivation of activation function

Return type

Tensor