tensorflow / fold

Deep learning with dynamic computation graphs in TensorFlow
Apache License 2.0
1.83k stars 266 forks source link

Type errors when using td.Compiler.init_loom() or eval() #11

Closed Yan-Huang-Cam closed 7 years ago

Yan-Huang-Cam commented 7 years ago

Hi,

I kept getting the following message when using td.Compiler.init_loom() or eval():

"TypeError: Expected int32, got list containing Tensors of type '_Message' instead"

The error message came up even when I followed the simple examples in the Quick Start Notebook, like: "scalar_block = td.Scalar() scalar_block.eval(42)"

My Tensorflow version is 0.12.1. I was wondering if you had any idea about how to fix this?

Thanks a lot for your attention and time!

ronghanghu commented 7 years ago

From the document, it seems that you need at least TensorFlow 1.0 to run TensorFlow Fold

Yan-Huang-Cam commented 7 years ago

Thank you very much! Sorry for neglecting this information in the documentation earlier. The problem is solved after upgrading TF