Comments (2)
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.
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)
- Error running a loaded agent in multienviroment HOT 2
- GPU integration for MacOs12.3 M1 Max
- Coupling Tensorforce model with a C++ environment HOT 1
- lstm+ppo
- Gym envirnoment broken: 'dict' object has no attribute 'env_specs HOT 3
- Issues installing Tensorforce from pip on Python 3.10
- is it still active? HOT 2
- How to change epsilon value when using epsilon-greedy policy? HOT 2
- Can I customize the loss function?
- Saver documentation inconsistent with example
- End-to-end data collection and policy updates on the GPU possible with tensorforce
- how to modify the loss function of the value network in PPO
- AttributeError: 'Adam' object has no attribute '_create_all_weights' HOT 3
- Why different models performs the same HOT 1
- AttributeError: type object 'Module' has no attribute '_MODULE_STACK' HOT 1
- tensorforce.exception.TensorforceError: Invalid value for variable argument spec: TensorSpec HOT 1
- Comparison of "online" and "offline" agent-enviroment interactions
- error creating an agent
- TypeError: CCompiler_spawn() got an unexpected keyword argument 'env' HOT 2
- A minimal example of custom Environment fails on protobuf or dtensor import from tensorflow.compat.v2.experimental HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorforce.