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

How to print LoDTensor to debug for my input #8440

Closed
TomorrowIsAnOtherDay opened this issue Feb 14, 2018 · 2 comments
Closed

How to print LoDTensor to debug for my input #8440

TomorrowIsAnOtherDay opened this issue Feb 14, 2018 · 2 comments
Labels
User 用于标记用户问题

Comments

@TomorrowIsAnOtherDay
Copy link
Contributor

I want to check my input in debugging my Model, but when I used fetch_list to get a LoDtensor and print it, I got [<paddle.v2.fluid.core.LoDTensor object at 0x7fcf26cacde0>], how to print its data in Python?

@kexinzhao
Copy link
Contributor

You can use something like np_data = np.array(your_lod_tensor) to convert it to a numpy array and then print it.

@typhoonzero typhoonzero added the User 用于标记用户问题 label Mar 2, 2018
@peterzhang2029
Copy link
Contributor

Closing due to low activity. Feel free to reopen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User 用于标记用户问题
Projects
None yet
Development

No branches or pull requests

4 participants