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

请问如何将追踪梯度的tensor和QTensor互相转化? #42

Open
lumie-ai opened this issue Nov 10, 2024 · 1 comment
Open

请问如何将追踪梯度的tensor和QTensor互相转化? #42

lumie-ai opened this issue Nov 10, 2024 · 1 comment

Comments

@lumie-ai
Copy link

No description provided.

@kevzos
Copy link
Contributor

kevzos commented Nov 11, 2024

@lumie-ai 你好,你说的tensor指的是例如torch这样其他框架的tensor么?其他框架的tensor可以通过转化为numpy的形式,然后通过
QTensor(ndarray,device,dtype)形式进行转化。但此方式会丢失梯度以及其梯度函数。不同框架之间的梯度函数是不能兼容的。

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