Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nto dev
  • Loading branch information
cookieminions committed Feb 22, 2021
2 parents 6b817ed + d1c095c commit 595b116
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ More parameter information please refer to `main_informer.py`.


## FAQ
If you run into a problem like `RuntimeError: The size of tensor a (98) must match the size of tensor b (96) at non-singleton dimension 1`, you can check torch version or modify code about `Conv1d` of `TokenEmbedding` in `models/embed.py` as the way of circular padding mode in Conv1d changed in different torch version.
If you run into a problem like `RuntimeError: The size of tensor a (98) must match the size of tensor b (96) at non-singleton dimension 1`, you can check torch version or modify code about `Conv1d` of `TokenEmbedding` in `models/embed.py` as the way of circular padding mode in Conv1d changed in different torch versions.


## Citation
Expand Down
3 changes: 2 additions & 1 deletion utils/timefeatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,5 @@ def time_features_from_frequency_str(freq_str: str) -> List[TimeFeature]:
raise RuntimeError(supported_freq_msg)

def time_features(dates, freq='h'):
return np.vstack([feat(dates) for feat in time_features_from_frequency_str(freq)])
return np.vstack([feat(dates) for feat in time_features_from_frequency_str(freq)])

0 comments on commit 595b116

Please sign in to comment.