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

3.2.4 能否使用torch.Tensor.backward()函数 #110

Open
pyh314 opened this issue Jul 16, 2024 · 1 comment
Open

3.2.4 能否使用torch.Tensor.backward()函数 #110

pyh314 opened this issue Jul 16, 2024 · 1 comment

Comments

@pyh314
Copy link

pyh314 commented Jul 16, 2024

backward函数的参数里面有create_graph这个参数,可以用来创建一阶导数的正向计算图,但是我还是不知道如何使用这个函数来计算二阶导数。能否给一个例子吗?谢谢!

@Neverforgetme
Copy link

稍等,我有一个图片可以给你参考。这个网页画起来挺烦的,但是anu 机器视觉入门期中考试还考查过

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

2 participants