Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif committed Oct 17, 2023
1 parent 7f55e5e commit e255134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/gluonts/torch/model/i_transformer/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ITransformerEstimator(PyTorchLightningEstimator):
Number of time steps prior to prediction time that the model
takes as inputs (default: ``10 * prediction_length``).
d_model
Size of hidden layers in the Transformer encoder.
Size of latent in the Transformer encoder.
nhead
Number of attention heads in the Transformer encoder which must divide d_model.
dim_feedforward
Expand Down
4 changes: 2 additions & 2 deletions src/gluonts/torch/model/i_transformer/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.

from typing import Tuple
from typing import Optional, Tuple

import torch
from torch import nn
Expand Down Expand Up @@ -69,7 +69,7 @@ def __init__(
activation: str,
norm_first: bool,
num_encoder_layers: int,
scaling: str,
scaling: Optional[str],
distr_output=StudentTOutput(),
) -> None:
super().__init__()
Expand Down

0 comments on commit e255134

Please sign in to comment.