compute_sequence_pad¶
- daart.data.compute_sequence_pad(hparams: dict) int[source]¶
Compute padding needed to account for convolutions.
- Parameters:
hparams (dict) – contains model architecture type and hyperparameter info (lags, n_hidden_layers, etc)
- Returns:
amount of padding that needs to be added to beginning/end of each batch
- Return type:
int