TensorFlow升级到1.2.0后带来的问题

2022-10-19 09:05:33

1. AttributeError: module 'tensorflow' has no attribute 'batch_matmul'

解决办法:batch_matmul>>>matmul

举例:

#out = tf.batch_matmul(outputs, W_repeated) + b
out = tf.matmul(outputs, W_repeated) + b


2. AttributeError: module 'tensorflow' has no attribute 'pack'

解决办法:pack>>>stack

  • 作者:caicaiatnbu
  • 原文链接:https://blog.csdn.net/caicaiatnbu/article/details/74929586
    更新时间:2022-10-19 09:05:33