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
e83fa176
Unverified
Commit
e83fa176
authored
Aug 26, 2022
by
Louis-J
Committed by
GitHub
Aug 26, 2022
Browse files
fix(speedup): remove the unsupported syntax in python 3.7: positional only arguments (#5084)
parent
4cf68009
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
nni/compression/pytorch/speedup/jit_translate.py
nni/compression/pytorch/speedup/jit_translate.py
+1
-1
No files found.
nni/compression/pytorch/speedup/jit_translate.py
View file @
e83fa176
...
@@ -222,7 +222,7 @@ class FuncAdapter:
...
@@ -222,7 +222,7 @@ class FuncAdapter:
self
.
undetermined
=
undetermined
self
.
undetermined
=
undetermined
self
.
special_treat
=
special_treat
self
.
special_treat
=
special_treat
def
__call__
(
self
,
/
,
*
args
):
def
__call__
(
self
,
*
args
):
assert
len
(
args
)
>=
len
(
self
.
undetermined
)
assert
len
(
args
)
>=
len
(
self
.
undetermined
)
if
len
(
args
)
>
len
(
self
.
undetermined
):
if
len
(
args
)
>
len
(
self
.
undetermined
):
logger
.
warning
(
'throw some args away when calling the function "%s"'
,
self
.
func
.
__name__
)
logger
.
warning
(
'throw some args away when calling the function "%s"'
,
self
.
func
.
__name__
)
...
...
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