Skip to content

Commit

Permalink
use make_linear_layer
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif committed Aug 9, 2024
1 parent efa4f31 commit afb12c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gluonts/torch/model/bim/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ def __init__(
self.scaler = NOPScaler(keepdim=True)

# concat loc and scale to the context window
self.linear_backbone = nn.Linear(context_length + 2, self.mem_dim)
self.linear_backbone = make_linear_layer(
context_length + 2, self.mem_dim
)
self.end_conv = nn.Conv1d(
self.mem_dim * 3, self.mem_dim, kernel_size=1
)
Expand Down

0 comments on commit afb12c3

Please sign in to comment.