Open XiaolongJackson opened 4 months ago
有没有兄弟姐妹遇到过这种问题?这是我对plotting部分代码的修改后,再次运行的报错。
it means that this has been written in older version of tensorflow. the current version of tensorflow might have different syntax for setting random seed.
有没有兄弟姐妹遇到过这种问题?这是我对plotting部分代码的修改后,再次运行的报错。
请问你解决了吗,我也一样,尝试换了一个旧版本(2.16.1),但可能是因为不够旧,所以还是报同样的错
it means that this has been written in older version of tensorflow. the current version of tensorflow might have different syntax for setting random seed.
hi, i try to install earlier version like 1.11.0 but it seems it can't be found:
ERROR: Could not find a version that satisfies the requirement tensorflow==1.11.0 (from versions: 2.16.0rc0, 2.16.1, 2.16.2, 2.17.0rc0, 2.17.0rc1, 2.17.0) ERROR: No matching distribution found for tensorflow==1.11.0
do you have any suggestions? thanks a lot!
我已经解决了。就是我们的python版本要低一些,比如用3.7版本,然后就是tensorflow的版本不能超过2.0。所以,我推荐你用python3.7版本和tensorflow1.15
---Original--- From: @.> Date: Mon, Aug 5, 2024 20:27 PM To: @.>; Cc: @.**@.>; Subject: Re: [maziarraissi/PINNs] AttributeError: module 'tensorflow' has noattribute 'set_random_seed' (Issue #55)
有没有兄弟姐妹遇到过这种问题?这是我对plotting部分代码的修改后,再次运行的报错。
请问你解决了吗,我也一样,尝试换了一个旧版本(2.16.1),但可能是因为不够旧,所以还是报同样的错
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
有没有兄弟姐妹遇到过这种问题?这是我对plotting部分代码的修改后,再次运行的报错。
请问你解决了吗,我也一样,尝试换了一个旧版本(2.16.1),但可能是因为不够旧,所以还是报同样的错
我已经解决了。就是我们的python版本要低一些(因为不同版本的tensorflow包对应的python解释器版本不同,同时又因为原本的代码采用的是比较低的tensorflow版本(<2.0)),所以我推荐使用:python3.7+tensorflow1.15或者python3.11+tensorflow1.15。希望能够帮助到你!
这意味着这是用旧版本的 TensorFlow 编写的。TensorFlow 的当前版本可能具有不同的设置随机种子的语法。
是的,就是版本更新迭代了。
it means that this has been written in older version of tensorflow. the current version of tensorflow might have different syntax for setting random seed.
I think ,code needs to be changed according to latest libraries.
AttributeError: module 'tensorflow' has no attribute 'set_random_seed'