Hi all,
I am new to PyTorch. I have the following setting:

inputs time series of length: N
for each datapoint in the time series I have a target vector of length N where y_i  is 0 (no event) or 1 (event)

I have many of these signals. Each signal has a different length which depends on the recording time. For example one recording can be N = 1000 datapoints and another N = 1 Million datapoints.
I have understood that one way to manage this is by using sequence padding. However, given the very very different lengths of the recordings this will mean that I will end up with a tensor which is very large (of length of my longest recording) and mostly constituted of zeros.
Is zero padding, in this context, the best way to go? or is there an alternative?
Thanks,
Jo