Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RLlib] Fix time dimension shaping for PyTorch RNN models. #21735

Merged
merged 8 commits into from
Apr 29, 2022

Conversation

XuehaiPan
Copy link
Contributor

Why are these changes needed?

Related issue number

Closes #13075

Checks

  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

@bveeramani
Copy link
Member

‼️ ACTION REQUIRED ‼️

We've switched our code formatter from YAPF to Black (see #21311).

To prevent issues with merging your code, here's what you'll need to do:

  1. Install Black
pip install -I black==21.12b0
  1. Format changed files with Black
curl -o format-changed.sh https://gist.githubusercontent.com/bveeramani/42ef0e9e387b755a8a735b084af976f2/raw/7631276790765d555c423b8db2b679fd957b984a/format-changed.sh
chmod +x ./format-changed.sh
./format-changed.sh
rm format-changed.sh
  1. Commit your changes.
git add --all
git commit -m "Format Python code with Black"
  1. Merge master into your branch.
git pull upstream master
  1. Resolve merge conflicts (if necessary).

After running these steps, you'll have the updated format.sh.

Copy link
Member

@gjoliver gjoliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to create a small unit test for add_time_dimension() based on your research.
good debugging btw.

@stale
Copy link

stale bot commented Mar 5, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

  • If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@stale stale bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Mar 5, 2022
@stale stale bot removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Mar 6, 2022
@stale
Copy link

stale bot commented Apr 6, 2022

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.

  • If you'd like to keep this open, just leave any comment, and the stale label will be removed.

@stale stale bot added the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Apr 6, 2022
@stale stale bot removed the stale The issue is stale. It will be closed within 7 days unless there are further conversation label Apr 7, 2022
@sven1977
Copy link
Contributor

Hey @XuehaiPan , thanks a ton for this PR! Could you check the failing test cases here?
https://buildkite.com/ray-project/ray-builders-pr/builds/29015

Some things may have been broken by your changes.

@XuehaiPan
Copy link
Contributor Author

Hi @sven1977, I updated my PR. The CI test errors seem irrelevant.

@sven1977 sven1977 changed the title [RLlib] Fix time dimension shaping for PyTorch RNN models [RLlib] Fix time dimension shaping for PyTorch RNN models. Apr 29, 2022
@sven1977 sven1977 merged commit 377a522 into ray-project:master Apr 29, 2022
@sven1977
Copy link
Contributor

Merged! :) Thanks for the fix @XuehaiPan.

@XuehaiPan XuehaiPan deleted the torch-add-time-dimemsion branch April 29, 2022 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RLlib] Bug when using RNNs, time_major and PyTorch
4 participants