You have to call the conv_single_step function to calculate Z[i, h, w, c]. For more guidance, check this post.
conv_single_step
Z[i, h, w, c]