Deep-Learning-with-TensorFlow-book icon indicating copy to clipboard operation
Deep-Learning-with-TensorFlow-book copied to clipboard

11.5代码运行出错对应ch11-循环神经网络

Open Riley-coder7 opened this issue 4 years ago • 3 comments

11.5代码运行出错,对应ch11-循环神经网络下的sentiment_analysis_cell.py

Riley-coder7 avatar Apr 23 '20 08:04 Riley-coder7

model.compile(optimizer=optimizers.RMSprop(0.001),
                  loss=losses.BinaryCrossentropy(),
                  metrics=['accuracy'],
                  experimental_run_tf_function=False) # 你可以尝试加上这个

这样就不会报错了,在main函数里

redfrogotr avatar Apr 28 '20 10:04 redfrogotr

我还是会遇到这个error:call() takes 2 positional arguments but 3 were given

tengwang0318 avatar Mar 23 '21 15:03 tengwang0318

我还是会遇到这个error:call() takes 2 positional arguments but 3 were given

好久没看了,等一个大佬解答。🙃

redfrogotr avatar Mar 25 '21 00:03 redfrogotr