Tensorflow: attributeerror: module ‘tensorflow’ has no attribute ‘unpack’ (‘pack ‘)
As shown in the figure:
AttributeError: module ‘tensorflow’ has no attribute ‘unpack’
Analysis: after tensorflow version 1.0 + is updated, the method name changes
Solution:
error report th> | before update th> | after update th> |
---|---|---|
attributeerror: module ‘tensorflow’ has no attribute ‘unpack’ td> | after update tf.unpack () | tf.unstack () |
AttributeError: module ‘tensorflow’ has no attribute ‘pack’ | tf.pack () | tf.stack () |