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

paddle/phi/kernels/impl/matmul_kernel_impl.h中无法对DenseTensor进行cout #64352

Open
hanhaowen-mt opened this issue May 16, 2024 · 2 comments
Assignees
Labels

Comments

@hanhaowen-mt
Copy link

需求描述 Feature Description

这样导致debug困难

替代实现 Alternatives

No response

@zyfncg
Copy link
Contributor

zyfncg commented May 16, 2024

void TensorToVector(const phi::DenseTensor& src,

打印的问题我们后续想办法升级下,目前可以使用上面链接中的TensorToVector接口将Tensor中的数据拷贝到Vector中来打印,在matmul_kernel_impl.h中使用起来也比较简单。

@hanhaowen-mt
Copy link
Author

void TensorToVector(const phi::DenseTensor& src,

打印的问题我们后续想办法升级下,目前可以使用上面链接中的TensorToVector接口将Tensor中的数据拷贝到Vector中来打印,在matmul_kernel_impl.h中使用起来也比较简单。

OK,栓Q~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants