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
ColossalAI
Commits
198a74b9
Unverified
Commit
198a74b9
authored
Mar 30, 2023
by
yuxuan-lou
Committed by
GitHub
Mar 30, 2023
Browse files
[NFC] polish colossalai/context/random/__init__.py code style (#3327)
parent
82132f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
colossalai/context/random/__init__.py
colossalai/context/random/__init__.py
+13
-2
No files found.
colossalai/context/random/__init__.py
View file @
198a74b9
from
._helper
import
(
seed
,
set_mode
,
with_seed
,
add_seed
,
get_seeds
,
get_states
,
get_current_mode
,
set_seed_states
,
sync_states
,
moe_set_seed
,
reset_seeds
)
from
._helper
import
(
add_seed
,
get_current_mode
,
get_seeds
,
get_states
,
moe_set_seed
,
reset_seeds
,
seed
,
set_mode
,
set_seed_states
,
sync_states
,
with_seed
,
)
__all__
=
[
'seed'
,
'set_mode'
,
'with_seed'
,
'add_seed'
,
'get_seeds'
,
'get_states'
,
'get_current_mode'
,
'set_seed_states'
,
...
...
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