Tensorflow dataset API - Apply windows to multiple sequences
问题 I want to setup a data pipeline working with sequential data. Each data point in a sequence has a fixed dimenstionality, e.g. 64x64. I have multiple sequences with variable length. So my dataset can be simplified to: seq1 = np.arange(5)[:, None, None] seq2 = np.arange(8)[:, None, None] seq3 = np.arange(7)[:, None, None] sequences = [seq1, seq2, seq3] Now, I want to operate on a series of time frames within the sequences, resulting in 3-dimensional data cubes [N_frames, data_dim1, data_dim2].