gluonts.torch.modules.lookup_table module#
- class gluonts.torch.modules.lookup_table.LookupValues(bin_values: torch.Tensor)[source]#
Bases:
torch.nn.modules.module.Module
A lookup table mapping bin indices to values.
- Parameters
bin_values – Tensor of bin values with shape (num_bins, ).
- forward(indices: torch.Tensor) torch.Tensor [source]#
Define the computation performed at every call.
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.
- training: bool#