Skip to content

  • 体验新版
    • 正在加载...
  • 登录
  • PaddlePaddle
  • PARL
  • Issue
  • #340

P
PARL
  • 项目概览

PaddlePaddle / PARL

通知 68
Star 3
Fork 0
  • 代码
    • 文件
    • 提交
    • 分支
    • Tags
    • 贡献者
    • 分支图
    • Diff
  • Issue 18
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 3
  • Wiki 0
    • Wiki
  • 分析
    • 仓库
    • DevOps
  • 项目成员
  • Pages
P
PARL
  • 项目概览
    • 项目概览
    • 详情
    • 发布
  • 仓库
    • 仓库
    • 文件
    • 提交
    • 分支
    • 标签
    • 贡献者
    • 分支图
    • 比较
  • Issue 18
    • Issue 18
    • 列表
    • 看板
    • 标记
    • 里程碑
  • 合并请求 3
    • 合并请求 3
  • Pages
  • 分析
    • 分析
    • 仓库分析
    • DevOps
  • Wiki 0
    • Wiki
  • 成员
    • 成员
  • 收起侧边栏
  • 动态
  • 分支图
  • 创建新Issue
  • 提交
  • Issue看板
已关闭
开放中
Opened 7月 11, 2020 by saxon_zh@saxon_zhGuest

[RuntimeError] Shape not matching: the Program requires a parameter with a shape of ((30, 3)), while the loaded parameter (namely [ fc.w_9 ]) has a shape of ((33, 1)).

Created by: zbp-xxxp

[07-11 17:40:44 MainThread @machine_info.py:88] Cannot find available GPU devices, using CPU now. [07-11 17:40:44 MainThread @machine_info.py:88] Cannot find available GPU devices, using CPU now. [07-11 17:40:44 MainThread @machine_info.py:88] Cannot find available GPU devices, using CPU now. ---------------------------------------------------------------------------RuntimeError Traceback (most recent call last) in 108 109 if name == 'main': --> 110 main() in main() 83 agent = Agent(algorithm, obs_dim, act_dim) 84 ---> 85 agent.restore(r'model/pre_training/model_number_60.ckpt') 86 print("已成功加载模型!") 87 /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/parl/core/fluid/agent.py in restore(self, save_path, program) 194 dirname=dirname, 195 main_program=program, --> 196 filename=filename) /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/io.py in load_params(executor, dirname, main_program, filename) 796 main_program=main_program, 797 predicate=is_parameter, --> 798 filename=filename) 799 800 /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/io.py in load_vars(executor, dirname, main_program, vars, predicate, filename) 680 main_program=main_program, 681 vars=list(filter(predicate, main_program.list_vars())), --> 682 filename=filename) 683 else: 684 load_prog = Program() /opt/conda/envs/python35-paddle120-env/lib/python3.7/site-packages/paddle/fluid/io.py in load_vars(executor, dirname, main_program, vars, predicate, filename) 739 "Shape not matching: the Program requires a parameter with a shape of ({}), " 740 "while the loaded parameter (namely [ {} ]) has a shape of ({}).". --> 741 format(orig_shape, each_var.name, new_shape)) 742 743 RuntimeError: Shape not matching: the Program requires a parameter with a shape of ((30, 3)), while the loaded parameter (namely [ fc.w_9 ]) has a shape of ((33, 1)).

I cound't load program when i want to train a RL program. It doesn't matter when i load it in my PC. Could you give me some solution? Thanks~

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/PARL#340
渝ICP备2023009037号

京公网安备11010502055752号

网络110报警服务 Powered by GitLab CE v13.7
开源知识
Git 入门 Pro Git 电子书 在线学 Git
Markdown 基础入门 IT 技术知识开源图谱
帮助
使用手册 反馈建议 博客
《GitCode 隐私声明》 《GitCode 服务条款》 关于GitCode
Powered by GitLab CE v13.7