ValueError: Cannot assign non-leaf Tensor to parameter 'weight'. Model parameters must be created explicitly. To express 'weight' as a function of another Tensor, compute the value in the forward() method. 加载权重成功了,infer报错 Activity ailongxia commented on May 3, 2024 ailongxia on May...