Aaron Gokaslan
8fce9a09cd
[BE]: pyupgrade Python to 3.8 - imports and object inheritance only ( #94308 )
...
Apply parts of pyupgrade to torch (starting with the safest changes).
This PR only does two things: removes the need to inherit from object and removes unused future imports.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94308
Approved by: https://github.com/ezyang , https://github.com/albanD
2023-02-07 21:10:56 +00:00
Brian Wignall
f326045b37
Fix typos, via a Levenshtein-type corrector ( #31523 )
...
Summary:
Should be non-semantic.
Uses https://en.wikipedia.org/wiki/Wikipedia:Lists_of_common_misspellings/For_machines to find likely typos, with https://github.com/bwignall/typochecker to help automate the checking.
Uses an updated version of the tool used in https://github.com/pytorch/pytorch/pull/30606 .
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31523
Differential Revision: D19216749
Pulled By: mrshenli
fbshipit-source-id: 7fd489cb9a77cd7e4950c1046f925d57524960ea
2020-01-17 16:03:19 -08:00
Orion Reblitz-Richardson
1d5780d42c
Remove Apache headers from source.
...
* LICENSE file contains details, so removing from individual source files.
2018-03-27 13:10:18 -07:00
Yangqing Jia
8286ce1e3a
Re-license to Apache
...
Summary: Closes https://github.com/caffe2/caffe2/pull/1260
Differential Revision: D5906739
Pulled By: Yangqing
fbshipit-source-id: e482ba9ba60b5337d9165f28f7ec68d4518a0902
2017-09-28 16:22:00 -07:00
Guillaume Dumont
e8689dda8f
Python 3 compatible integer division
...
Summary:
As the title says.
Closes https://github.com/caffe2/caffe2/pull/879
Differential Revision: D5372787
Pulled By: akyrola
fbshipit-source-id: 0ff469c0d227f1b2252c1a0c4f6f8bebaac5580f
2017-07-06 11:47:12 -07:00
Aaron Markham
58f7f2b441
doxygen python block added
...
Summary: Closes https://github.com/caffe2/caffe2/pull/226
Differential Revision: D4793550
Pulled By: JoelMarcey
fbshipit-source-id: cc33e58186304fa8dcac2ee9115dcc271d785b1e
2017-03-29 06:46:16 -07:00
Yangqing Jia
559053d3a8
chunky sync
2016-05-13 14:43:48 -07:00
Yangqing Jia
cf7ca23fc1
make caffe2.python build
2016-03-08 16:48:19 -08:00
Yangqing Jia
9ae880bb6f
move pycaffe2 to caffe2.python
2016-03-08 15:45:30 -08:00