liuhuanyong/SiameseSentenceSimilarity

关于Keras版本以及tf版本问题

Opened this issue · 2 comments

Keras低于或等于2.1.2 tf版本为1.0.0抛出如下异常:
passed an input_mask: Tensor("embedding_1/NotEqual:0", shape=(?, 25), dtype=bool)
Keras为2.2.4 tf版本为1.0.0 抛出如下异常:
TypeError: while_loop() got an unexpected keyword argument 'maximum_iterations'
Keras为2.2.4 tf版本为1.13.1 抛出如下异常:
AttributeError: module '_pywrap_tensorflow_internal' has no attribute 'TFE_DEVICE_PLACEMENT_EXPLICIT_swigconstant'

请教下tf的版本应该是多少,,,

Keras低于或等于2.1.2 tf版本为1.0.0抛出如下异常:
passed an input_mask: Tensor("embedding_1/NotEqual:0", shape=(?, 25), dtype=bool)
Keras为2.2.4 tf版本为1.0.0 抛出如下异常:
TypeError: while_loop() got an unexpected keyword argument 'maximum_iterations'
Keras为2.2.4 tf版本为1.13.1 抛出如下异常:
AttributeError: module '_pywrap_tensorflow_internal' has no attribute 'TFE_DEVICE_PLACEMENT_EXPLICIT_swigconstant'

请教下tf的版本应该是多少,,,

您后来运行成功了嘛?

我用的是tf 1.5 keras 2.2.4 py 3.6 mac m1