加载resnet50 出现Please convert data to LoDTensor directly before feeding the data
Created by: JingChunzhen
input_image = fluid.layers.data(
name="input_image",
shape=[-1, 3, 224, 224],
dtype="float32",
lod_level=2)
需要输入的数据都是规整的,没有变长的情况 完整的错误信息为:
paddle resnet RuntimeError: Some of your feed data hold LoD information. They can not be completely cast from a list of Python ndarray to LoDTensor. Please convert data to LoDTensor directly before feeding the data.