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

Added th.device to represent both str and torch.device. #357

Merged
merged 4 commits into from
Nov 9, 2022

Conversation

luisenp
Copy link
Contributor

@luisenp luisenp commented Nov 8, 2022

This PR also adds a file py.typed so that mypy knows how to use our type annotations in other projects.

@luisenp luisenp self-assigned this Nov 8, 2022
@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 Nov 8, 2022
theseus/__init__.py Outdated Show resolved Hide resolved
theseus/geometry/se2.py Outdated Show resolved Hide resolved
@luisenp luisenp merged commit 1b579ee into main Nov 9, 2022
@luisenp luisenp deleted the lep.device_type branch November 9, 2022 19:15
suddhu pushed a commit to suddhu/theseus that referenced this pull request Jan 21, 2023
…arch#357)

* Added th.device to represent both str and torch.device.

* _TheseusDevice now includes optional as well.

* Renamed TheseusDevice as DeviceType.
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants