Giter VIP home page Giter VIP logo

Comments (8)

zenghsh3 avatar zenghsh3 commented on July 20, 2024 1

@kosoraYintai hi,问题定位到应该是在同一个程序里创建多个agent/model导致的。例如train过程创建了一个model和agent(假设layers的参数名是从0命名到9),然后同个程序里在test过程中又创建一遍model和agent的话(layers的参数名会从10命名到19),从而引起load_params参数找不到。

修改后的一个可跑版本:
https://aistudio.baidu.com/user/74287/72745/notebooks/72745.ipynb?redirects=1

image

from parl.

kosoraYintai avatar kosoraYintai commented on July 20, 2024 1

终于解决了,不过bias也要加参数名ParamAttr

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

收到,我们这边先确认下是否是PARL引起的,如果不是的话我们会转交给AI Studio的同事跟进,感谢反馈。

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

我认为这个更多是静态图引起的歧义,未来支持动态图之后将更少出现这种情况。

from parl.

kosoraYintai avatar kosoraYintai commented on July 20, 2024

这个可跑版本,相当于把train和test的过程绑在一起了,这样的话,只能将把train阶段产生的model/agent设置为的全局变量,以供后序的对拍和代码生成等功能使用,那么save/load函数就意义不大了;目前关闭页面后再load还是报错额,只能重新train一遍再test。是否有分离train与test过程的方法?(即:先train,train完save参数,再关闭项目或者关闭页面;然后重启项目或者刷新页面,直接load参数进行test)

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

我理解你的疑惑。这个问题的来源是AI studio采用了类似Jupyter-notebook的方式来跑程序的,之前跑的程序是一直暂存在内存中(context),关闭页面并不代表关闭程序。

这个issue并不是PARL的相关bug导致的,我们即将关闭这个issue。

from parl.

zenghsh3 avatar zenghsh3 commented on July 20, 2024

或者可以显式地指定layers的参数名,从而创建多个agent时都是重用参数,例如下面:
image

from parl.

TomorrowIsAnOtherDay avatar TomorrowIsAnOtherDay commented on July 20, 2024

from parl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.