Skip to content

Commit

Permalink
🐛 access via config
Browse files Browse the repository at this point in the history
  • Loading branch information
wgifford committed Jan 15, 2025
1 parent ccde10d commit 04c925d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tsfm_public/models/tinytimemixer/modeling_tinytimemixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1840,7 +1840,9 @@ def forward(
)

sequence_length = (
self.config.masked_context_length if self.config.masked_context_length is not None else self.context_length
self.config.masked_context_length
if self.config.masked_context_length is not None
else self.config.context_length
)

if past_values.shape[1] > sequence_length:
Expand Down

0 comments on commit 04c925d

Please sign in to comment.