Skip to content

Commit faaf085

Browse files
Lab state fix - running now.
1 parent c8cfba9 commit faaf085

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

examples/lab_main.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,8 @@ def main():
9090

9191
if args.debug:
9292
logger.info("-" * 16)
93-
logger.info("Agent configuration:")
94-
logger.info(agent.config)
95-
if agent.model:
96-
logger.info("Model configuration:")
97-
logger.info(agent.model.config)
93+
logger.info("Configuration:")
94+
logger.info(agent_config)
9895

9996
runner = Runner(
10097
agent=agent,

tensorforce/environments/deepmind_lab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@ def states(self):
111111
state_type = state['dtype']
112112

113113
if state_type == np.uint8:
114-
state_type = np.int32
114+
state_type = np.float32
115115

116116
if state['name'] == self.state_attribute:
117-
states[state['name']] = dict(shape=state['shape'], type=state_type)
117+
return dict(shape=state['shape'], type=state_type)
118118

119119
return states
120120

0 commit comments

Comments
 (0)