human
Adding a 1-D Array to a 3-D array in Numpy
assistant
Here is some code to add array of shape `(6, 9, 20)` to array `[1, 2, 3, 4, 5, 6, 7, 8, 9]`

np.zeros((6, 9, 20)) + np.array([1, 2, 3, 4, 5, 6, 7, 8, 9]).reshape((1, 9, 1))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.