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)
- 飞腾+麒麟v10+昆仑K100环境中编译 PaddlePaddle 报错 HOT 3
- Module 'paddle.base.layers' has no attribute 'embedding'. HOT 2
- Paddle如何支持Resnet半精度推理? HOT 1
- 0
- AttributeError: module 'paddle' has no attribute 'cinn'. HOT 1
- 静态图模式下Dataset的tensor被自动转换为variable,导致DataLoader报错 HOT 1
- 昇腾atlas 310P3推理卡适配 HOT 4
- import paddle时候出core HOT 6
- Fail to fscanf: Success [0]
- 有没有jetpack6.0的python安装包,在jetpack5中,目前的cuda,cudnn版本已经不兼容paddle了 HOT 1
- jetson上安装paddle_gpu HOT 1
- 在centos上安装paddle==2.6.1版本出现Illegal instruction (core dumped)错误,用dmesg -T查看有下面错误,是什么原因?谢 HOT 11
- nn.Linear的输出与pytorch不一致 HOT 1
- windows下python3.10编译cuda12.1版本的2.6.1paddle失败 HOT 1
- while_loop报错 HOT 4
- LSTM API could_use_cudnn 段错误 HOT 5
- npu下import paddlenlp报错:No module named 'paddle.nn.layer.layers' HOT 2
- paddle.signal.stft 计算后,paddle.as_real 计算错误 HOT 2
- paddle.nn.MaxPool2D没有实现dilation参数 HOT 1
- docker镜像无法使用 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.