torch.nn.utils.parameters_to_vector¶ torch.nn.utils.parameters_to_vector(parameters)[原始碼][原始碼]¶ 將參數的可迭代對象展平為單一向量。 參數 parameters (Iterable[Tensor]) – 一個 Tensor 的可迭代對象,這些 Tensor 是模型的參數。 返回 由單一向量表示的參數 返回類型 Tensor