常见的版本错误:
AttributeError: module 'tensorflow' has no attribute 'sub'
将tf.subt替换成tf.subtract
AttributeError: module 'tensorflow' has no attribute 'mul'
将tf.mul替换成tf.multiply
AttributeError: module 'tensorflow' has no attribute 'neg'
将tf.neg替换为tf.negative