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

Add back compatibility with torch #1904

Merged

Conversation

thewhaleking
Copy link
Contributor

@thewhaleking thewhaleking commented May 20, 2024

Adds back compatibility with torch, invoked by passing the USE_TORCH env var.

Fixes #1897

@thewhaleking thewhaleking requested a review from a team May 21, 2024 17:55
@thewhaleking thewhaleking marked this pull request as ready for review May 21, 2024 17:55
@gus-opentensor
Copy link
Collaborator

Looks great!

Suggestion: add a file .example.env with USE_TORCH= and add a comment to indicate what have it set to 0 or 1 does.

bittensor/metagraph.py Outdated Show resolved Hide resolved
bittensor/metagraph.py Outdated Show resolved Hide resolved
bittensor/dendrite.py Outdated Show resolved Hide resolved
…ool function rather than selecting individually from the `os.environ` every time.
Copy link
Contributor

@RomanCh-OT RomanCh-OT left a comment

Choose a reason for hiding this comment

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

LGTM

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.

None yet

3 participants