Skip to content

Adding correst setup commands for verifying torch is installed #4524

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

Conversation

vincentpierre
Copy link
Contributor

Proposed change(s)

This should fix the test.
On Windows, the user will see an error message when installing if they do not have torch installed.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@ervteng
Copy link
Contributor

ervteng commented Oct 1, 2020

Thanks for changing this!

@vincentpierre vincentpierre merged commit c7303f0 into develop-torchdefault Oct 1, 2020
@delete-merged-branch delete-merged-branch bot deleted the develop-torchdefault-setup-command branch October 1, 2020 00:22
Copy link
Contributor

@ervteng ervteng left a comment

Choose a reason for hiding this comment

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

Actually before you merge can you confirm that putting it in a cmd class will work with a whl (i.e. from pypi)?

pypa/setuptools#1782

ervteng pushed a commit that referenced this pull request Oct 21, 2020
* Torch setup.py

* Set torch to default

* Make torch default in setup.py

* Remove indents

* Remove other instances of TF being used

* Add tensorboard to setup.py

* Adding correst setup commands for verifying torch is installed (#4524)

* Adding correst setup commands for verifying torch is installed

* Editing the test_requirments to add tf and remove torch

* Develop torchdefault raise outside setup (#4530)

* Torch not imported error to raise at first usage

* Torch not imported error to raise at first usage

* [refactor] Use PyTorch TensorBoard utils (#4518)

* Convert stats writer to use PyTorch TB support

* Use common function to print params

* Update test

* Bump tensorboard to 1.15 to fix the tests

* putting tensorboard 1.15.0 as min version requirement

Co-authored-by: vincentpierre <[email protected]>

* [Docs] Initial documentation changes for making Torch the default (#4561)

* Initial commit

* Forgotten doc

* Removing the `Installation-Anaconda-Windows.md` as it is deprecated

* Readding the depreacted Installation-Anaconda-Windows.md but leaving it unchanged

* more references to tensorflow removed

* Update README.md

Co-authored-by: Ervin T. <[email protected]>

* Change references to .nn to .onnx in docs (#4583)

Co-authored-by: Ervin T. <[email protected]>

* [refactor] Add --tensorflow, enable Torch as default setting (#4582)

* Add --tensorflow option

* Switch framework to Pytorch default

* Update changelog

* Re-add --torch

* Edit warning

* Modify Yamato tests (#4584)

* Don't check for PB file in Yamato inference

* Only run inference on ONNX

* Update docs/Unity-Inference-Engine.md with correct tf2onnx versions

Co-authored-by: Chris Elion <[email protected]>

* Add reward signal class comments

* More descriptive import of is_available

* Updated installation instructions for PyTorch

* More reward signal comments

* More Windows instructions

Co-authored-by: Vincent-Pierre BERGES <[email protected]>
Co-authored-by: Chris Elion <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants