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
5e198621
Commit
5e198621
authored
6 years ago
by
Neta Zmora
Browse files
Options
Downloads
Patches
Plain Diff
Fixed test execution in new environment
parent
7fbde765
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/__init__.py
+0
-0
0 additions, 0 deletions
tests/__init__.py
tests/test_basic.py
+5
-0
5 additions, 0 deletions
tests/test_basic.py
tests/test_infra.py
+10
-4
10 additions, 4 deletions
tests/test_infra.py
with
15 additions
and
4 deletions
tests/__init__.py
deleted
100644 → 0
+
0
−
0
View file @
7fbde765
This diff is collapsed.
Click to expand it.
tests/test_basic.py
+
5
−
0
View file @
5e198621
...
...
@@ -15,6 +15,11 @@
#
import
torch
import
os
import
sys
module_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
'
..
'
))
if
module_path
not
in
sys
.
path
:
sys
.
path
.
append
(
module_path
)
import
distiller
def
test_sparsity
():
...
...
This diff is collapsed.
Click to expand it.
tests/test_infra.py
+
10
−
4
View file @
5e198621
...
...
@@ -14,11 +14,17 @@
# limitations under the License.
#
def
test_load
():
from
models
import
create_model
from
apputils
import
load_checkpoint
import
logging
import
logging
import
os
import
sys
module_path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
'
..
'
))
if
module_path
not
in
sys
.
path
:
sys
.
path
.
append
(
module_path
)
from
models
import
create_model
from
apputils
import
load_checkpoint
def
test_load
():
logger
=
logging
.
getLogger
(
'
simple_example
'
)
logger
.
setLevel
(
logging
.
INFO
)
...
...
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