The shape of Z is:
Z
Z -- conv output, numpy array of shape (m, n_H, n_W, n_C)
Also, you may find this post helpful.