lululxvi / deeponet

Learning nonlinear operators via DeepONet
Other
509 stars 139 forks source link

AttributeError: 'Triple' object has no attribute 'transform_inputs' #25

Open jinjunyonggzh opened 2 years ago

jinjunyonggzh commented 2 years ago

model.restore("model/model.ckpt-" + str(train_state.best_step) + ".ckpt", verbose=1)

model.restore("model/model.ckpt-" + str(train_state.best_step), verbose=1)

safe_test(model, data, X_test, y_test)

Saving loss history to D:\LULU\deeponet-master1\deeponet-master\src\loss.dat ... Error: The network has multiple inputs, and saving such result han't been implemented. Error: The network has multiple inputs, and plotting such result han't been implemented. Restoring model from model/model.ckpt-5000.ckpt ...

Traceback (most recent call last): File "D:/LULU/deeponet-master1/deeponet-master/src/deeponet_pde.py", line 285, in main() File "D:\LULU/deeponet-master1/deeponet-master/src/deeponet_pde.py", line 281, in main run(problem, system, space, T, m, nn, net, lr, epochs, num_train, num_test) File "D:\LULU/deeponet-master1/deeponet-master/src/deeponet_pde.py", line 177, in run safe_test(model, data, X_test, y_test) File "D:\LULU\deeponet-master1\deeponet-master\src\utils.py", line 56, in safe_test y_pred.append(model.predict(data.transform_inputs(X_add))) AttributeError: 'Triple' object has no attribute 'transform_inputs'

进程已结束,退出代码1

lululxvi commented 2 years ago

https://github.com/lululxvi/deeponet#installation-guide

yejiwi commented 1 year ago

https://github.com/lululxvi/deeponet#installation-guide

Hi, I have the same issue and my code is already modified for the new version. What can I use instead of 'transform_inputs'?