torch.randn(1,80,100,requires_grad=True)
torch.onnx.export(waveglow,a, "waveglow.onnx") 我正在尝试将PyTorch模型导出为ONNX在PyTorch中测试我的模型时,输入张量维度是(1,80,x),其中x随输入文本长度而变化(我使用的模型是名为waveglow的TTS模型) 当我尝试运行上面的代码将模型导出到onnx时,我总是得到这个错误RuntimeError: Only tuples, list
根据PyTorch文档页面,我认为我应该能够将未批处理的输入输入到L形状的RNN中,其中L是序列的长度,H_in是输入的长度。也就是二维矢量。error_x1.backward() optimizer_prediction.zero_grad()RuntimeError: input must have 3
radar_forecast.py 请帮我改正这个错误: Error when checking input: expected conv_lst_m2d_167_input to have 5 dimensions, but gotarray with shape (1785, 400, 320, 3) 如果我向X_Train的重塑数组添加另一个维度: X_Train = np.array(X).reshape(-1, 400,Error when checking input: expected conv_lst_m2d_167_inp