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
FastMoE
Commits
d90ff389
Commit
d90ff389
authored
Apr 30, 2022
by
zms1999
Browse files
fix typo in shadow policy
parent
2ce87038
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fmoe/fastermoe/shadow_policy.py
fmoe/fastermoe/shadow_policy.py
+1
-1
No files found.
fmoe/fastermoe/shadow_policy.py
View file @
d90ff389
...
@@ -69,5 +69,5 @@ def get_shadow_policy(d_model=None):
...
@@ -69,5 +69,5 @@ def get_shadow_policy(d_model=None):
if
d_model
is
not
None
and
'FMOE_FASTER_GLBPLC_DMODEL'
not
in
os
.
environ
:
if
d_model
is
not
None
and
'FMOE_FASTER_GLBPLC_DMODEL'
not
in
os
.
environ
:
os
.
environ
[
'FMOE_FASTER_GLBPLC_DMODEL'
]
=
str
(
d_model
)
os
.
environ
[
'FMOE_FASTER_GLBPLC_DMODEL'
]
=
str
(
d_model
)
if
not
switch_from_env
(
'FMOE_FASTER_SHADOW_ENABLE'
):
if
not
switch_from_env
(
'FMOE_FASTER_SHADOW_ENABLE'
):
return
no_policy
return
no_
shadow_
policy
return
global_policy
return
global_policy
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