detach#

pytorch_forecasting.utils.detach(x: Union[Dict[str, Union[Tensor, List[Tensor], Tuple[Tensor]]], Tensor, List[Tensor], Tuple[Tensor]]) Union[Dict[str, Union[Tensor, List[Tensor], Tuple[Tensor]]], Tensor, List[Tensor], Tuple[Tensor]][source]#

Detach object

Parameters

x – object to detach

Returns

detached object