Code Monkey home page Code Monkey logo

Comments (3)

HydrogenSulfate avatar HydrogenSulfate commented on July 28, 2024

请提出你的问题 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_graphto 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.

gerjf22 avatar gerjf22 commented on July 28, 2024

请提出你的问题 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_graphto 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.

HydrogenSulfate avatar HydrogenSulfate commented on July 28, 2024

请提出你的问题 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_graphto 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.