Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jinjunyonggzh opened this issue Jun 25, 2022 · 2 comments
Open

Comments

@jinjunyonggzh
Copy link

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
Copy link
Owner

@yejiwi
Copy link

yejiwi commented Mar 20, 2023

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'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants