Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
declearn2
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
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
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
Magnet
DecLearn
declearn2
Commits
ffe6a302
Verified
Commit
ffe6a302
authored
1 year ago
by
ANDREY Paul
Browse files
Options
Downloads
Patches
Plain Diff
Fix Torch 1.13 unit tests launch.
parent
aff0ff31
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!63
Finalize DecLearn v2.4.0.
Pipeline
#943513
passed
1 year ago
Stage: clean
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/run_tests.sh
+2
-1
2 additions, 1 deletion
scripts/run_tests.sh
with
2 additions
and
1 deletion
scripts/run_tests.sh
+
2
−
1
View file @
ffe6a302
...
@@ -203,7 +203,7 @@ run_torch13_tests() {
...
@@ -203,7 +203,7 @@ run_torch13_tests() {
'
'
echo
"Installing torch 1.13 and its co-dependencies."
echo
"Installing torch 1.13 and its co-dependencies."
TORCH_DEPS
=
$(
pip freeze |
grep
-e
torch
-e
opacus
)
TORCH_DEPS
=
$(
pip freeze |
grep
-e
torch
-e
opacus
)
pip
install
.[torch1]
pip
install
"opacus == 1.4.0"
"torch ~=1.13.0"
if
[[
$?
-eq
0
]]
;
then
if
[[
$?
-eq
0
]]
;
then
echo
"Running unit tests for torch 1.13."
echo
"Running unit tests for torch 1.13."
command
=
"pytest
$@
command
=
"pytest
$@
...
@@ -211,6 +211,7 @@ run_torch13_tests() {
...
@@ -211,6 +211,7 @@ run_torch13_tests() {
test/model/test_torch_model.py
test/model/test_torch_model.py
"
"
echo
-e
"
\e
[34m
$command
\e
[0m"
echo
-e
"
\e
[34m
$command
\e
[0m"
$command
status
=
$?
status
=
$?
else
else
echo
"
\e
[31mSkipping tests as installation failed.
\e
[0m"
echo
"
\e
[31mSkipping tests as installation failed.
\e
[0m"
...
...
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