Assume $$f(\vec b)=WX\,\tilde{+}\,b$$ where $W$ and $X$ are two matrices, $\vec b$ is a vector, and $\tilde{+}$ symbol is so-called broadcast plus:
$$ \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix} \tilde{+} \begin{pmatrix} 5 \\ 6 \end{pmatrix} = \begin{pmatrix} 6 & 7 \\ 9 & 10 \end{pmatrix} $$
How to calculate the gradient matrix of $f(\vec b)$?
As far as I can see you can replace the broadcast operation by adding the matrix
$$B = \begin{bmatrix}b & b & \dots & b \end{bmatrix}.$$
the gradient of the matrix-valued function $f$ with respect to $b$ is given by
$$\dfrac {\partial f_i}{\partial b_j} = \begin{bmatrix}\delta_{ij}&\delta_{ij}&\ldots &\delta_{ij} \end{bmatrix}.$$
In which $\delta_{ij}=1$ if $i=j$ and $\delta_{ij}=0$ if $i\neq j$.