Skip to content

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

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 9月 18, 2020 by saxon_zh@saxon_zhGuest

MADDPG例子报错求助!!

Created by: gudufengzhongyipilang

  1. 背景:在双2070ti的服务器上跑MADDPG的example,CUDA环境为10.2,nccl2已经装好,各个环境依赖都已经装好了。

  2. conda下直接运行train.py,错误发生在simple_agent.py第118行 类MAAgent() 函数predict()内: def predict(self, obs): obs = np.expand_dims(obs, axis=0) obs = obs.astype('float32') act = self.fluid_executor.run( self.pred_program, feed={'obs': obs}, fetch_list=[self.pred_act])[0] 报错信息如下: `发生异常: EnforceNotMet


C++ Call Stacks (More useful to developers):

0 std::string paddle::platform::GetTraceBackStringstd::string(std::string&&, char const*, int) 1 paddle::platform::EnforceNotMet::EnforceNotMet(paddle::platform::ErrorSummary const&, char const*, int) 2 paddle::framework::ParallelExecutor::FeedAndSplitTensorIntoLocalScopes(std::unordered_map<std::string, paddle::framework::LoDTensor, std::hashstd::string, std::equal_tostd::string, std::allocator<std::pair<std::string const, paddle::framework::LoDTensor> > > const&)


Error Message Summary:

PreconditionNotMetError: The number(1) of samples[obs] of current batch is less than the count(2) of devices(GPU), currently, it is not allowed. at (/paddle/paddle/fluid/framework/parallel_executor.cc:923) File "/home/fsj/programs/RL/PARL/examples/MADDPG/simple_agent.py", line 118, in predict fetch_list=[self.pred_act])[0] File "/home/fsj/programs/RL/PARL/examples/MADDPG/train.py", line 33, in action_n = [agent.predict(obs) for agent, obs in zip(agents, obs_n)] File "/home/fsj/programs/RL/PARL/examples/MADDPG/train.py", line 33, in run_episode action_n = [agent.predict(obs) for agent, obs in zip(agents, obs_n)] File "/home/fsj/programs/RL/PARL/examples/MADDPG/train.py", line 134, in train_agent ep_reward, ep_agent_rewards, steps = run_episode(env, agents) File "/home/fsj/programs/RL/PARL/examples/MADDPG/train.py", line 226, in train_agent()`

指派人
分配到
无
里程碑
无
分配里程碑
工时统计
无
截止日期
无
标识: paddlepaddle/PARL#414
渝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