haskell icon indicating copy to clipboard operation
haskell copied to clipboard

tensorflow-core-ops compilation error

Open svenssonjoel opened this issue 3 years ago • 2 comments

Used these commands from your docker file to obtain tensorflow: curl -O https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-linux-x86_64-2.3.0.tar.gz &&
tar zxf libtensorflow-cpu-linux-x86_64-2.3.0.tar.gz -C /usr/local &&
ldconfig && \

But when doing stack build:

tensorflow-core-ops> Configuring tensorflow-core-ops-0.2.0.1... tensorflow-core-ops> build tensorflow-core-ops> parseAttrType: unrecognized type "func" for op "LegacyParallelInterleaveDatasetV2" tensorflow-core-ops> CallStack (from HasCallStack): tensorflow-core-ops> error, called at src/TensorFlow/OpGen/ParsedOp.hs:345:10 in tensorflow-opgen-0.2.0.1-BoVt9892svW5DvHSRs0Z2o:TensorFlow.OpGen.ParsedOp

svenssonjoel avatar Dec 08 '20 11:12 svenssonjoel

We only support TF-2.3 with 0.3.0.0: https://github.com/tensorflow/haskell/blob/master/tensorflow-core-ops/tensorflow-core-ops.cabal#L2

Someone needs to push a new version to hackage. How hard is it for you to use the HEAD from this repo?

blackgnezdo avatar Dec 10 '20 01:12 blackgnezdo

I'd rather grab from hackage or if it was integrated well with stack. Is that stackage? My stack.yaml file is full of those odd dependency lines with ugly hashes for it to find tensorflow.

Btw how come this project is split up into so many subpackages when so many of them are needed for very basic examples?

svenssonjoel avatar Dec 11 '20 06:12 svenssonjoel