SiameseSentenceSimilarity icon indicating copy to clipboard operation
SiameseSentenceSimilarity copied to clipboard

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

Open lxz1992 opened this issue 5 years ago • 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的版本应该是多少,,,

lxz1992 avatar May 22 '19 07:05 lxz1992

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的版本应该是多少,,,

您后来运行成功了嘛?

qiao1024 avatar Jun 14 '21 03:06 qiao1024

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

prigioni avatar Jan 31 '23 13:01 prigioni