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

Include Eigen not framework/eigen in float16 #10587

Closed
wants to merge 1 commit into from

Conversation

reyoung
Copy link
Collaborator

@reyoung reyoung commented May 11, 2018

If float16.h include framework/eigen.h, it includes tensor.h, ddim.h indirectly, which causes circular reference. (tensor -> float16 -> tensor)

Copy link
Contributor

@kexinzhao kexinzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

However, as is mentioned before, #include "unsupported/Eigen/CXX11/Tensor" will cause a weird segment fault on GPU for TestNAN and TestINF in tensor_util_test. I couldn't figure out the exact reason, but changing this include to #include "eigen.h" will solve the problem. So I did this in the current code.

I saw the same segmentfault in the CI test here.

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

Successfully merging this pull request may close these issues.

2 participants