Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
56da3c39
Unverified
Commit
56da3c39
authored
Aug 11, 2021
by
liuzhe-lz
Committed by
GitHub
Aug 11, 2021
Browse files
Fix a bug in retiarii (#4052)
parent
0fe0fd86
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nni/retiarii/utils.py
nni/retiarii/utils.py
+1
-1
No files found.
nni/retiarii/utils.py
View file @
56da3c39
...
...
@@ -43,7 +43,7 @@ def get_module_name(cls_or_func):
if
inspect
.
getmodule
(
frm
[
0
]).
__name__
==
'__main__'
:
# main module found
main_file_path
=
Path
(
inspect
.
getsourcefile
(
frm
[
0
]))
if
main_file_path
.
parent
s
[
0
]
!=
Path
(
'.'
):
if
not
Path
().
samefile
(
main_file_path
.
parent
):
raise
RuntimeError
(
f
'You are using "
{
main_file_path
}
" to launch your experiment, '
f
'please launch the experiment under the directory where "
{
main_file_path
.
name
}
" is located.'
)
module_name
=
main_file_path
.
stem
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment