_连接输出#

pytorch_forecasting.models.base_model._concatenate_output(output: List[Dict[str, List[List[Tensor] | Tensor | bool | int | str | ndarray]]]) Dict[str, Tensor | ndarray | List[Tensor | int | bool | str]][来源]#

连接多个输出字典的批次。

Parameters:

输出 (列表[字典[字符串, 列表[联合[列表[torch.Tensor], torch.Tensor, 布尔值, 整数, 字符串, np.ndarray]]]]) – 要拼接的输出列表。每个条目对应一个批次。

Returns:

连接的输出

Return type:

字典[str, 联合[torch.Tensor, np.ndarray, 列表[联合[torch.Tensor, int, bool, str]]]]