Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
distiller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
llvm
distiller
Commits
fbdbe35a
"git@gitlab.engr.illinois.edu:cs525-sp18-g07/spark.git" did not exist on "b21ae5bbb9baa966f69303a30659aa8bbb2098da"
Commit
fbdbe35a
authored
5 years ago
by
Guy Jacob
Browse files
Options
Downloads
Patches
Plain Diff
Update required PyTorch version check
parent
b8b4cf32
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
distiller/__init__.py
+6
-6
6 additions, 6 deletions
distiller/__init__.py
with
6 additions
and
6 deletions
distiller/__init__.py
+
6
−
6
View file @
fbdbe35a
...
...
@@ -107,13 +107,13 @@ def model_find_module(model, module_to_find):
def
check_pytorch_version
():
from
pkg_resources
import
parse_version
if
parse_version
(
torch
.
__version__
)
<
parse_version
(
'
1.1.0
'
):
required
=
'
1.3.1
'
actual
=
torch
.
__version__
if
parse_version
(
actual
)
<
parse_version
(
required
):
msg
=
"
\n\n
WRONG PYTORCH VERSION
\n
"
\
"
The Distiller
\'
master
\'
branch now requires at least PyTorch version 1.1.0 due to
"
\
"
PyTorch API changes which are not backward-compatible. Version detected is {}.
\n
"
\
"
To make sure PyTorch and all other dependencies are installed with their correct versions,
"
\
"
go to the Distiller repo root directory and run:
\n\n
"
\
"
pip install -e .
\n
"
.
format
(
torch
.
__version__
)
"
Required: {}
\n
"
\
"
Installed: {}
\n
"
\
"
Please run
'
pip install -e .
'
from the Distiller repo root dir
\n
"
.
format
(
required
,
actual
)
raise
RuntimeError
(
msg
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment