Coder Social home page Coder Social logo

Comments (2)

wernerolaf avatar wernerolaf commented on June 28, 2024

I get new error after change


AttributeError Traceback (most recent call last)
Input In [277], in <cell line: 1>()
----> 1 Linear(unit='timesteps', num_steps=100000,
2 initial_value=1, final_value=0.05)

File ~/Desktop/Semantic-Reasoning-in-Reinforcement-Learning/tensorforce/tensorforce/core/parameters/linear.py:42, in Linear.init(self, unit, num_steps, initial_value, final_value, name, dtype, min_value, max_value)
38 def init(
39 self, *, unit, num_steps, initial_value, final_value, name=None, dtype=None, min_value=None,
40 max_value=None
41 ):
---> 42 super().init(
43 decay='linear', unit=unit, num_steps=num_steps, initial_value=initial_value, name=name,
44 dtype=dtype, min_value=min_value, max_value=max_value, final_value=final_value
45 )

File ~/Desktop/Semantic-Reasoning-in-Reinforcement-Learning/tensorforce/tensorforce/core/parameters/decaying.py:148, in Decaying.init(self, decay, unit, num_steps, initial_value, increasing, inverse, scale, name, dtype, min_value, max_value, **kwargs)
145 self.scale = scale
146 self.kwargs = kwargs
--> 148 super().init(
149 unit=unit, name=name, dtype=dtype, min_value=min_value, max_value=max_value
150 )

File ~/Desktop/Semantic-Reasoning-in-Reinforcement-Learning/tensorforce/tensorforce/core/parameters/parameter.py:39, in Parameter.init(self, unit, name, dtype, shape, min_value, max_value)
36 def init(
37 self, *, unit='timesteps', name=None, dtype=None, shape=(), min_value=None, max_value=None
38 ):
---> 39 super().init(name=name)
41 assert unit in (None, 'timesteps', 'episodes', 'updates')
42 self.unit = unit

File ~/Desktop/Semantic-Reasoning-in-Reinforcement-Learning/tensorforce/tensorforce/core/module.py:167, in Module.init(self, device, l2_regularization, name)
166 def init(self, *, device=None, l2_regularization=None, name=None):
--> 167 name = name.replace('/', '_')
168 super().init(name=name)
170 self.checkpoint = None

AttributeError: 'NoneType' object has no attribute 'replace'

from tensorforce.

wernerolaf avatar wernerolaf commented on June 28, 2024

and after changing this replace


AttributeError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 Linear(unit='timesteps', num_steps=100000,
2 initial_value=1, final_value=0.05)

File ~/Desktop/Semantic-Reasoning-in-Reinforcement-Learning/tensorforce/tensorforce/core/parameters/linear.py:42, in Linear.init(self, unit, num_steps, initial_value, final_value, name, dtype, min_value, max_value)
38 def init(
39 self, *, unit, num_steps, initial_value, final_value, name=None, dtype=None, min_value=None,
40 max_value=None
41 ):
---> 42 super().init(
43 decay='linear', unit=unit, num_steps=num_steps, initial_value=initial_value, name=name,
44 dtype=dtype, min_value=min_value, max_value=max_value, final_value=final_value
45 )

File ~/Desktop/Semantic-Reasoning-in-Reinforcement-Learning/tensorforce/tensorforce/core/parameters/decaying.py:148, in Decaying.init(self, decay, unit, num_steps, initial_value, increasing, inverse, scale, name, dtype, min_value, max_value, **kwargs)
145 self.scale = scale
146 self.kwargs = kwargs
--> 148 super().init(
149 unit=unit, name=name, dtype=dtype, min_value=min_value, max_value=max_value
150 )

File ~/Desktop/Semantic-Reasoning-in-Reinforcement-Learning/tensorforce/tensorforce/core/parameters/parameter.py:39, in Parameter.init(self, unit, name, dtype, shape, min_value, max_value)
36 def init(
37 self, *, unit='timesteps', name=None, dtype=None, shape=(), min_value=None, max_value=None
38 ):
---> 39 super().init(name=name)
41 assert unit in (None, 'timesteps', 'episodes', 'updates')
42 self.unit = unit

File ~/Desktop/Semantic-Reasoning-in-Reinforcement-Learning/tensorforce/tensorforce/core/module.py:178, in Module.init(self, device, l2_regularization, name)
175 self.is_saved = None
176 self.is_initialized = None
--> 178 assert len(Module._MODULE_STACK) >= 1
179 if isinstance(Module._MODULE_STACK[-1], type):
180 assert isinstance(self, Module._MODULE_STACK[-1])

AttributeError: type object 'Module' has no attribute '_MODULE_STACK'

from tensorforce.

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.