pytorch_forecasting.models.temporal_fusion_transformer.sub_modules.
VariableSelectionNetwork
Bases: torch.nn.modules.module.Module
torch.nn.modules.module.Module
Calcualte weights for num_inputs variables which are each of size input_size
num_inputs
input_size
Methods
forward(x[, context])
forward
Defines the computation performed at every call.
Attributes
input_size_total
Should be overridden by all subclasses.
Note
Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.
Module