Comments (2)
报错:
Error Traceback (most recent call last)/tmp/ipykernel_95/2675772064.py in
12 dudx = paddle.grad(outputs, x, grad_outputs=None, create_graph=True)[0]
13 print(dudx)
---> 14 d2udx2 = paddle.grad(dudx, x, grad_outputs=None, create_graph=True)[0]
15 print(d2udx2)
in grad(outputs, inputs, grad_outputs, retain_graph, create_graph, only_inputs, allow_unused, no_grad_vars)
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/wrapped_decorator.py in impl(func, *args, **kwargs)
24 def impl(func, *args, **kwargs):
25 wrapped_func = decorator_func(func)
---> 26 return wrapped_func(*args, **kwargs)
27
28 return impl
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/framework.py in impl(*args, **kwargs)
545 % func.name
546 )
--> 547 return func(*args, **kwargs)
548
549 return impl
/opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/dygraph/base.py in grad(outputs, inputs, grad_outputs, retain_graph, create_graph, only_inputs, allow_unused, no_grad_vars)
689 retain_graph, create_graph,
690 only_inputs, allow_unused,
--> 691 no_grad_vars)
692 else:
693 place = core.Place()
ValueError: (InvalidArgument) The 0-th input does not appear in the backward graph. Please check the input tensor or set allow_unused=True to get None result.
[Hint: Expected allow_unused == true, but received allow_unused:0 != true:1.] (at /paddle/paddle/fluid/eager/general_grad.h:471)
from paddle.
你好,在目前develop版本上未复现出这个问题,可以更新下paddle
from paddle.
Related Issues (20)
- RSSegBenchmark-c2fnet复现出现bug HOT 8
- 同一份训练模型的代码在使用CPU和GPU运行时梯度存在明显差异 HOT 7
- 海光X86+昆仑芯RG800,请问 registry.baidubce.com/paddlepaddle/serving:xpu-x86连xpu显卡都看不到 HOT 2
- 官网镜像pull不了,docker pull registry.baidubce.com/device/paddle-xpu:ubuntu18-x86_64-gcc82 HOT 1
- 现在支持 cuda 12.3 Cudnn 8.9.7 python3.8 window系统了没有 自己编译也不支持吗
- There is no documentation for paddle.inference Tensor in the official documentation of PaddlePaddle. HOT 1
- ParamAttr的参数learning_rate取值非1时,paddle是否会为learning_rate创建一个变量,如何给这个变量指定名字? HOT 1
- paddle/phi/kernels/impl/matmul_kernel_impl.h中无法对DenseTensor进行cout HOT 2
- 补全rms_norm算子CPU实现 HOT 2
- `masked_fill_`對int64處理異常,塞入paddle.iinfo(paddle.int64).max會被當作min HOT 11
- cmake编译 GPU 版本的 Paddle 出现错误 LINK : fatal error LNK1248: 映像大小(8046A000)超过允许的最大大小(80000000) HOT 2
- 【求助】关于paddledetection 中 mot_ppyoloe_l_36e_pipeline model的推理过程 HOT 3
- paddle的nansum不支持empty的求和 HOT 2
- 调用paddle.grad函数计算指数函数和三角函数的高阶微分,报错如何解决 HOT 1
- 提供详细的模型结构打印信息 HOT 7
- paddle.nn.AdaptiveAvgPool2D没有对输入的维度进行检查 HOT 1
- paddle.nn.MaxPool2D缺乏对输入的形状检查
- 在华为Atlas加速卡服务器,银河麒麟V10系统的服务器上编译paddle,cmake执行完毕但是没有生成makefile HOT 1
- 【PIR】Sparse 算子 Python API 适配 HOT 1
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 paddle.