thrkingd

Results 4 comments of thrkingd

我看了一下, 这种写法要求pre_weights_dict(静态图)和当前dy_weights_dict(动态图)的变量名称要一致,但是静态图构建的时候是可以为参数指定名称的(有参数name)动态图构建的时候怎么为参数指定名称(dygragh的函数没有name参数)?

这个命名的方法确实是可以的,但是我还遇到了两个问题: 1. 我下载的resnet-50是老的模型参数,就是一堆小的文件,我去load参数时报错了: program_state = fluid.load_program_state('./ResNet18_pretrained') 2020-08-07 08:15:09,478-WARNING: ./ResNet18_pretrained.pdparams not found, try to load model file saved with [ save_params, save_persistables, save_vars ] 2020-08-07 08:15:09,478-WARNING: ./ResNet18_pretrained.pdparams not found, try to...