TensorFlow升级到1.2.0后带来的问题

xiaoxiao2021-02-28  129

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

转载请注明原文地址: https://www.6miu.com/read-31815.html

最新回复(0)