Skip to content

Commit

Permalink
chore!: Update dependencies to PyTorch 1.6.0
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Support for Python 3.5 is being dropped with this
update

Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed Aug 5, 2020
1 parent 771b615 commit 8eda27d
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.1
3.4.1
8 changes: 4 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@ http_archive(
name = "libtorch",
build_file = "@//third_party/libtorch:BUILD",
strip_prefix = "libtorch",
urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.5.1.zip"],
sha256 = "cf0691493d05062fe3239cf76773bae4c5124f4b039050dbdd291c652af3ab2a"
urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-cxx11-abi-shared-with-deps-1.6.0.zip"],
sha256 = "fded948bd2dbee625cee33ebbd4843a69496729389e0200a90fbb667cdaeeb69"
)

http_archive(
name = "libtorch_pre_cxx11_abi",
build_file = "@//third_party/libtorch:BUILD",
strip_prefix = "libtorch",
sha256 = "818977576572eadaf62c80434a25afe44dbaa32ebda3a0919e389dcbe74f8656",
urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.5.1.zip"],
sha256 = "141bb229f4bbf905541096cf8705785e7b0c79e37ca1e5db9d372730b1b9abd7",
urls = ["https://download.pytorch.org/libtorch/cu102/libtorch-shared-with-deps-1.6.0.zip"],
)

# Download these tarballs manually from the NVIDIA website
Expand Down
7 changes: 0 additions & 7 deletions py/build_whl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ cd /workspace/TRTorch/py

export CXX=g++

build_py35() {
/opt/python/cp35-cp35m/bin/python -m pip install -r requirements.txt
/opt/python/cp35-cp35m/bin/python setup.py bdist_wheel
#auditwheel repair --plat manylinux2014_x86_64
}

build_py36() {
/opt/python/cp36-cp36m/bin/python -m pip install -r requirements.txt
/opt/python/cp36-cp36m/bin/python setup.py bdist_wheel
Expand All @@ -30,7 +24,6 @@ build_py38() {
#auditwheel repair --plat manylinux2014_x86_64
}

build_py35
build_py36
build_py37
build_py38
2 changes: 1 addition & 1 deletion py/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
torch==1.5.1
torch==1.6.0
6 changes: 3 additions & 3 deletions py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def run(self):
long_description=long_description,
ext_modules=ext_modules,
install_requires=[
'torch==1.5.1',
'torch==1.6.0',
],
setup_requires=[],
cmdclass={
Expand All @@ -210,7 +210,7 @@ def run(self):
license="BSD",
packages=find_packages(),
classifiers=[
"Development Status :: 3 - Alpha",
"Development Status :: 4 - Beta",
"Environment :: GPU :: NVIDIA CUDA",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Developers",
Expand All @@ -224,7 +224,7 @@ def run(self):
"Topic :: Software Development",
"Topic :: Software Development :: Libraries"
],
python_requires='>=3.5',
python_requires='>=3.6',
include_package_data=True,
package_data={
'trtorch': ['lib/*.so'],
Expand Down
2 changes: 1 addition & 1 deletion tests/py/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
torchvision==0.6.0
torchvision==0.7.0

0 comments on commit 8eda27d

Please sign in to comment.