mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
added if prediction_length is None
This commit is contained in:
parent
e455bbf5c7
commit
b4cbddfa05
@ -179,6 +179,9 @@ class InformerConfig(PretrainedConfig):
|
||||
**kwargs,
|
||||
):
|
||||
# time series specific configuration
|
||||
if prediction_length is None:
|
||||
raise ValueError("The `prediction_length` should be set.")
|
||||
|
||||
self.prediction_length = prediction_length
|
||||
self.context_length = context_length or prediction_length
|
||||
self.distribution_output = distribution_output
|
||||
|
Loading…
Reference in New Issue
Block a user