转自 http://blog.csdn.net/caimouse/article/details/60465769
编译旧的代码,会像下面这样提示出错:
AttributeError: 'module' object has no attribute 'pack'
因为TF后面的版本修改了这个函数的名称,把 tf.pack 改为 tf.stack。
因此只需要替换掉,就可以编译通过了。
转自 http://blog.csdn.net/caimouse/article/details/60465769
编译旧的代码,会像下面这样提示出错:
AttributeError: 'module' object has no attribute 'pack'
因为TF后面的版本修改了这个函数的名称,把 tf.pack 改为 tf.stack。
因此只需要替换掉,就可以编译通过了。