这是indexloc提供的服务,不要输入任何密码
Skip to content

hotfix:fix test failure in cuda environment #289

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

Merged
merged 5 commits into from
Feb 9, 2021

Conversation

ChenDRAG
Copy link
Collaborator

@ChenDRAG ChenDRAG commented Feb 9, 2021

For now, if you run
pytest test --cov tianshou -s --durations 0 -v on a gpu mechine, it will raise error(due to cuda/cpu data conversion)
This pr fix that.

@Trinkle23897 Trinkle23897 linked an issue Feb 9, 2021 that may be closed by this pull request
Trinkle23897
Trinkle23897 previously approved these changes Feb 9, 2021
@codecov-io
Copy link

codecov-io commented Feb 9, 2021

Codecov Report

Merging #289 (9656a1e) into master (e3ee415) will increase coverage by 0.00%.
The diff coverage is 87.50%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #289   +/-   ##
=======================================
  Coverage   94.39%   94.40%           
=======================================
  Files          45       45           
  Lines        2892     2894    +2     
=======================================
+ Hits         2730     2732    +2     
  Misses        162      162           
Flag Coverage Δ
unittests 94.40% <87.50%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tianshou/utils/net/continuous.py 95.49% <75.00%> (ø)
tianshou/utils/net/discrete.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e3ee415...0575136. Read the comment docs.

@ChenDRAG
Copy link
Collaborator Author

ChenDRAG commented Feb 9, 2021

finished I think, ready for review

@Trinkle23897 Trinkle23897 merged commit f528131 into thu-ml:master Feb 9, 2021
@Trinkle23897 Trinkle23897 mentioned this pull request Feb 16, 2021
Trinkle23897 added a commit that referenced this pull request Feb 16, 2021
Throw a warning in ListReplayBuffer.

This version update is needed because of #289, the previous v0.3.1 cannot work well under torch<=1.6.0 with cuda environment.
BFAnas pushed a commit to BFAnas/tianshou that referenced this pull request May 5, 2024
BFAnas pushed a commit to BFAnas/tianshou that referenced this pull request May 5, 2024
Throw a warning in ListReplayBuffer.

This version update is needed because of thu-ml#289, the previous v0.3.1 cannot work well under torch<=1.6.0 with cuda environment.
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.

RuntimeError: CUDA error: an illegal memory access was encountered
3 participants