RNN: Week 1 Assignment 3 Exercise 1- Jazz Songs


In exercise 1, the instruction is to # Step 2.A: select the "t"th time step vector from X

However, the code X[:,t,:] gives a matrix of all the "t"th time steps of all the training examples. This is a matrix.

Is my understanding correct? or does this slicing method actually returns just returns a vector with the value of the "t"th time step?

Thank you


Please see this.

The shape of X is (m, T_x, n\_value).
As a result of slicing [:,t,:], we will get a matrix of (m, n\_value).

Hope this clarifies.