Skip to content

tensorflow-ops compile error #261

Open
@erichhasl

Description

@erichhasl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions