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

tensorflow-ops compile error #261

Open
erichhasl opened this issue Jul 1, 2020 · 1 comment
Open

tensorflow-ops compile error #261

erichhasl opened this issue Jul 1, 2020 · 1 comment

Comments

@erichhasl
Copy link

erichhasl commented Jul 1, 2020

I am trying to build tensorflow with stack version 2.3.1, but I always run into a compiler error when compiling tensorflow-ops:

tensorflow-ops    > configure
tensorflow-ops    > Configuring tensorflow-ops-0.2.0.1...
tensorflow-ops    > build
tensorflow-ops    > Preprocessing library for tensorflow-ops-0.2.0.1..
tensorflow-ops    > Building library for tensorflow-ops-0.2.0.1..
tensorflow-ops    > [1 of 7] Compiling TensorFlow.Ops
tensorflow-ops    > 
tensorflow-ops    > /tmp/stack-af6b60c2d52fc55d/tensorflow-ops-0.2.0.1/src/TensorFlow/Ops.hs:385:33: error:
tensorflow-ops    >     • Couldn't match type ‘Int64’ with ‘Int32’
tensorflow-ops    >       Expected type: Tensor Build Int32
tensorflow-ops    >         Actual type: Tensor Build Int64
tensorflow-ops    >     • In the first argument of ‘CoreOps.fill’, namely ‘(vector s)’
tensorflow-ops    >       In the expression: CoreOps.fill (vector s) (scalar 0)
tensorflow-ops    >       In an equation for ‘zeros’:
tensorflow-ops    >           zeros (Shape s) = CoreOps.fill (vector s) (scalar 0)
tensorflow-ops    >     |
tensorflow-ops    > 385 | zeros (Shape s) = CoreOps.fill (vector s) (scalar 0)
tensorflow-ops    >     |                                 ^^^^^^^^
tensorflow-ops    >

This did not occur, when using docker. I manually installed tensorflow, snappy and protobuf.

@blackgnezdo
Copy link
Contributor

The reason our docker build works is we use a fixed version of tensorflow (the c++ package). Please make sure you use the same version as our docker image.

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