code: def __init__(self, num_parallel_samples: int, **kwargs) -> None:
      super().__init__(**kwargs)
      self.num_parallel_samples = num_parallel_samples
  
      # for decoding the lags are shifted by one,
      # at the first time-step of the decoder a lag of one corresponds to
      # the last target value
      self.shifted_lags = [l - 1 for l in self.lags_seq]
  
file_path: gluonts/src/gluonts/nursery/robust-mts-attack/pts/model/tempflow/tempflow_network.py
imports: from typing import List, Optional, Tuple, Union
  import torch
  import torch.nn
  from gluonts.core.component import validated
  from pts.model import weighted_average
  from pts.modules import RealNVP, MAF, FlowOutput, MeanScaler, NOPScaler
label_desc: Use image node_id 1 to create a new TempFlowPredictionNetwork object from inherited base classes: TempFlowTrainingNetwork with example: obj = TempFlowPredictionNetwork(num_parallel_samples)