detach#
- pytorch_forecasting.utils._utils.detach(x: Dict[str, Tensor | List[Tensor] | Tuple[Tensor]] | Tensor | List[Tensor] | Tuple[Tensor]) Dict[str, Tensor | List[Tensor] | Tuple[Tensor]] | Tensor | List[Tensor] | Tuple[Tensor] [source]#
Detach object
- Parameters:
x – object to detach
- Returns:
detached object