Skip to content

Conversation

vmoens
Copy link
Collaborator

@vmoens vmoens commented Jul 12, 2022

Description

Implements new tests for tensordict created on device.

Motivation and Context

We may miss some bugs if we only test TensorDicts on cpu.

Types of changes

We create a new "device" param for tensordicts in test_tensordict.py::TestTensorDict

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 12, 2022
@vmoens vmoens added the Tests Incomplete or broken unit tests label Jul 12, 2022
@vmoens vmoens changed the title [Test]: TensorDict: test cuda and sub-td [Test]: TensorDict: test tensordict created on cuda and sub-tensordict indexed along 2nd dimension Jul 12, 2022
# Conflicts:
#	test/test_tensordict.py
@vmoens vmoens merged commit 71415ac into main Jul 12, 2022
@vmoens vmoens deleted the better_td_tests branch July 12, 2022 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Tests Incomplete or broken unit tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants