AttributeError: 'VarDesc' object has no attribute 'lod_tensor'
Created by: BryceLuminary
我使用 mobile-ssd 作为 load_inference_model() 的工作目录,
[net_program, feed_target_names,
fetch_targets] = fluid.io.load_inference_model(self.ModelPath, exe)
global_block = net_program.global_block()
debuger.draw_block_graphviz(global_block, path="./test.dot")
net_program 可正常 print,但 debuger.draw_block_graphviz 运行错误:
File "paddle/Paddle/build/python/paddle/fluid/debuger.py", line 240, in draw_block_graphviz
shape = [str(i) for i in var.lod_tensor.tensor.dims]
AttributeError: 'VarDesc' object has no attribute 'lod_tensor'
请问这是不是因为 framework 的 proto 版本发生变化导致的?怎样暂时解决这一问题呢,谢谢!