try this: numpy.sum( A*B, axis=2 )

this is similar to the other suggestion but perhaps clearer (axes are numbered from 0, so axis=2 is the 3rd axis or H out of MxNxH)

3D array multiplication
I want to to know how to change questions to indirect speech if we are asking about personal information? E.g "What's your name?" said John to the man.
"How old are you? 
What's your job? 
