39. Softmax

Medium

Transform the 1-D tensor x into a probability distribution: exponentiate each element, then divide by the sum of all the exponentials, so the outputs are non-negative and sum to 1.

Implement solve(...)