Skip to content

Commit

Permalink
fix bugs according to issues thuml#529 thuml#516
Browse files Browse the repository at this point in the history
  • Loading branch information
Musongwhk committed Sep 11, 2024
1 parent e1e59c5 commit b712c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/LightTS.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def __init__(self, configs, chunk_size=24):
self.chunk_size = min(configs.seq_len, chunk_size)
# assert (self.seq_len % self.chunk_size == 0)
if self.seq_len % self.chunk_size != 0:
self.seq_len += (24 - self.seq_len % self.chunk_size) # padding in order to ensure complete division
self.seq_len += (self.chunk_size - self.seq_len % self.chunk_size) # padding in order to ensure complete division
self.num_chunks = self.seq_len // self.chunk_size

self.d_model = configs.d_model
Expand Down

0 comments on commit b712c8c

Please sign in to comment.