Comments (3)
请提出你的问题 Please ask your question
我在计算三阶导数时出了一些问题。
当我需要求 d^3u/dxdy^2 时(即u先对y求二阶导,再对x求一阶导),我先计算 du_yy = hessian(u, y),再计算 du_yyx = jacobian(du_yy, x)。
报错为:RuntimeError: (Unavailable) The Op add_triple_grad doesn't have any gradop. If you don't intend calculating higher orderderivatives, please set
create_graph
to False.请问该怎样实现呢?
如果方便的话,是否可以提供一下能触发这个报错的最小可复现代码以及paddle的版本信息呢
终端执行:python -c "import paddle; paddle.version.show()"
可以打印出paddle版本信息
之前遇到过这个问题,可能是paddle比较老导致的,可以在官网:https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/develop/install/pip/linux-pip.html上安装最新的develop版paddle再运行试试看?
from paddlescience.
请提出你的问题 Please ask your question
我在计算三阶导数时出了一些问题。
当我需要求 d^3u/dxdy^2 时(即u先对y求二阶导,再对x求一阶导),我先计算 du_yy = hessian(u, y),再计算 du_yyx = jacobian(du_yy, x)。
报错为:RuntimeError: (Unavailable) The Op add_triple_grad doesn't have any gradop. If you don't intend calculating higher orderderivatives, please setcreate_graph
to False.
请问该怎样实现呢?如果方便的话,是否可以提供一下能触发这个报错的最小可复现代码以及paddle的版本信息呢
终端执行:
python -c "import paddle; paddle.version.show()"
可以打印出paddle版本信息之前遇到过这个问题,可能是paddle比较老导致的,可以在官网:https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/develop/install/pip/linux-pip.html上安装最新的develop版paddle再运行试试看?
我下载了最新的develop版paddle,可以解决问题。感谢你!
from paddlescience.
请提出你的问题 Please ask your question
我在计算三阶导数时出了一些问题。
当我需要求 d^3u/dxdy^2 时(即u先对y求二阶导,再对x求一阶导),我先计算 du_yy = hessian(u, y),再计算 du_yyx = jacobian(du_yy, x)。
报错为:RuntimeError: (Unavailable) The Op add_triple_grad doesn't have any gradop. If you don't intend calculating higher orderderivatives, please setcreate_graph
to False.
请问该怎样实现呢?如果方便的话,是否可以提供一下能触发这个报错的最小可复现代码以及paddle的版本信息呢
终端执行:python -c "import paddle; paddle.version.show()"
可以打印出paddle版本信息
之前遇到过这个问题,可能是paddle比较老导致的,可以在官网:https://www.paddlepaddle.org.cn/install/quick?docurl=/documentation/docs/zh/develop/install/pip/linux-pip.html上安装最新的develop版paddle再运行试试看?我下载了最新的develop版paddle,可以解决问题。感谢你!
好的,感谢对 PaddleScience 的关注。由于框架迭代速度比较快,之前一直依赖于 develop paddle,近期 2.6 发版之后会切换到该版本上,避免用户使用老版的 develop 遇到问题。
from paddlescience.
Related Issues (20)
- 【快乐开源】迁移 AMGNet 案例至 PaddleScience HOT 2
- 【快乐开源】复现 Phy-LSTM 论文 HOT 2
- 【快乐开源】为 PaddleScience 添加 HamiltonianMonteCarlo API HOT 3
- where is volterra HOT 1
- 优化文档结构,增强非专业领域人员可读性,增加应用场景描述,实验图表注明各变量物理意义 HOT 3
- 安装paddlescience报错 HOT 7
- 【快乐开源】基于hydra的案例改造计划 HOT 8
- bracket评估命令错误 HOT 1
- 关于定常问题初始流场设置 HOT 2
- 【快乐开源】补充汽车CFD数据集(Shape-Net Car)至 PaddleScience
- 【快乐开源】补充汽车CFD数据集(Ahmed)至 PaddleScience
- 【快乐开源】科学计算 API 文档补全 HOT 13
- AI Studio快速体验ldc2d_steady_Re10完整代码出现error HOT 1
- 【快乐开源】为 PaddleScience 案例添加 export 和 inference 功能 HOT 21
- paddlescience训练模型,验证时出错 HOT 1
- 【快乐开源】为PaddleScience添加chamfer distance loss HOT 1
- 训练的时候出现反向传播错误 HOT 7
- paddle和torch前向对齐,有误差 HOT 6
- 带有paddle.fft.fftshift网络模型的导出 HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paddlescience.