For $N$ possible labels, $p(y \mid x)$ is a vector of $N$ elements, and $f_\theta (x)$ is a vector -valued function with $N$ outputs.

Softmax