question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[rllib] Export model failure for TupleActions

See original GitHub issue

What is the problem?

I wanted to export a model which has tuple actions. But I got the AttributeError: 'TupleActions' object has no attribute 'dtype' error message while exporting TF model.

Ray version and other system information (Python version, TensorFlow version, OS): OS: Ubuntu 16.04 Python: 3.7 Ray: 0.7.6(also tested with 0.8.1) TF: 1.13.1(also tested with 1.15.0)

Reproduction (REQUIRED)

Please provide a script that can be run to reproduce the issue. The script should have no external library dependencies (i.e., use fake or mock data / environments):

I started from https://github.com/ray-project/ray/blob/master/rllib/examples/autoregressive_action_dist.py example and my script is https://gist.github.com/kepricon/e3d7ffc7eeb1dd1e8193451d7535c02a I just added "training_iteration": 5 to quick test export model and added 3 lines(local_dir, checkpoint_at_end, export_formats) at the very end of run config

If we cannot run your script, we cannot fix your issue.

  • I have verified my script runs in a clean environment and reproduces the issue.
  • I have verified the issue also occurs with the latest wheels.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sven1977commented, Feb 21, 2020

Update: This bug is on my TODO list for next week.

0reactions
kepriconcommented, Feb 27, 2020

https://ray.readthedocs.io/en/latest/installation.html#latest-snapshots-nightlies

if i install the latest snapshot whl from above link, will it contain the change?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Models, Preprocessors, and Action Distributions — Ray 2.2.0
Models, Preprocessors, and Action Distributions#. The following diagram provides a conceptual overview of data flow between different components in RLlib.
Read more >
How to deploy a rllib-trained model? : r/reinforcementlearning
I've been working on a Gym and using rllib to build the agent. ... I hacked that fix into rllib, turns out the...
Read more >
Ray/CHANGELOG and Ray Releases (Page 3) | LibHunt
RLLib features multiple new environments. Tune supports population based bandits, checkpointing in Docker, and multiple usability improvements. SGD ...
Read more >
Ray Documentation - UserManual.wiki
RLlib is an open-source library for reinforcement learning built on top of ... export_dir (str) – Optional dir to place the exported model....
Read more >
ray Changelog - pyup.io
Ray now exports some default configuration files which can be used for your ... Fix RNNSAC example failing on CI + fixes for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found