Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
caisar
Commits
336841dc
Commit
336841dc
authored
1 year ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[bin] Simplify python script about the dummy output.
parent
3afaf559
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/abcrown.sh
+1
-1
1 addition, 1 deletion
bin/abcrown.sh
bin/dummyversion.py
+1
-2
1 addition, 2 deletions
bin/dummyversion.py
bin/nnenum.sh
+1
-1
1 addition, 1 deletion
bin/nnenum.sh
with
3 additions
and
4 deletions
bin/abcrown.sh
+
1
−
1
View file @
336841dc
...
...
@@ -23,7 +23,7 @@
if
[
"
$1
"
=
"--version"
]
;
then
SCRIPT_DIR
=
$(
dirname
--
"
$0
"
;
)
$SCRIPT_DIR
/dummyversion.py
"complete_verifier.abcrown"
"dummy-version"
$SCRIPT_DIR
/dummyversion.py
"complete_verifier.abcrown"
else
OMP_NUM_THREADS
=
1 python3
-m
complete_verifier.abcrown
"
$@
"
fi
This diff is collapsed.
Click to expand it.
bin/dummyversion.py
+
1
−
2
View file @
336841dc
...
...
@@ -26,7 +26,6 @@ import importlib
from
importlib
import
import_module
module_name
=
str
(
sys
.
argv
[
1
])
dummy_version
=
str
(
sys
.
argv
[
2
])
spec
=
importlib
.
util
.
find_spec
(
module_name
)
...
...
@@ -42,5 +41,5 @@ try:
except
ModuleNotFoundError
:
exit
(
1
)
print
(
dummy
_
version
)
print
(
"
dummy
-
version
"
)
exit
(
0
)
This diff is collapsed.
Click to expand it.
bin/nnenum.sh
+
1
−
1
View file @
336841dc
...
...
@@ -23,7 +23,7 @@
if
[
"
$1
"
=
"--version"
]
;
then
SCRIPT_DIR
=
$(
dirname
--
"
$0
"
;
)
$SCRIPT_DIR
/dummyversion.py
"nnenum.nnenum"
"dummy-version"
$SCRIPT_DIR
/dummyversion.py
"nnenum.nnenum"
else
OMP_NUM_THREADS
=
1
OPENBLAS_NUM_THREADS
=
1 python3
-m
nnenum.nnenum
"
$@
"
fi
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