Open moses1994 opened 6 years ago
@moses1994 The shape
is a member of numpy.array
, which is a tuple representing the dimension of the array. shape
of (2, 3)
means a 2-dimentional matrix of 2x3
. In this code, the label_length
is an 1-dimensional array, and each element is the length of the transcript in the batch. So it's shape is (batch,)
. You don't need to calculate the shape
of an array.
3. input_length (required for CTC loss)
hi, I want to make a ctc demo, I do not know the "label_length.shape" and "input_length.shape", how to calculate them ? and what means them ? thanks you.