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
8539898e
Commit
8539898e
authored
Mar 10, 2022
by
RichardoLuo
Committed by
Frank Lee
Mar 11, 2022
Browse files
flake8 style change (#363)
parent
53bb3bcc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
colossalai/context/random/_helper.py
colossalai/context/random/_helper.py
+1
-1
colossalai/context/random/seed_manager.py
colossalai/context/random/seed_manager.py
+1
-1
No files found.
colossalai/context/random/_helper.py
View file @
8539898e
...
...
@@ -56,7 +56,7 @@ def add_seed(parallel_mode: ParallelMode, seed: int, overwrite: bool = False):
:type parallel_mode: :class:`colossalai.context.ParallelMode`
:param seed: The seed to be added
:type seed: int
:raises AssertionError: Raises an AssertionError if `parallel_mode` is not an instance of
:raises AssertionError: Raises an AssertionError if `parallel_mode` is not an instance of
:class:`colossalai.context.ParallelMode` or the seed for `parallel_mode` has been added
"""
_SEED_MANAGER
.
add_seed
(
parallel_mode
,
seed
,
overwrite
)
...
...
colossalai/context/random/seed_manager.py
View file @
8539898e
...
...
@@ -63,7 +63,7 @@ class SeedManager:
:type seed: int
:param overwrtie: Whether allows to overwrite the seed that has been set already
:type overwrtie: bool, optional
:raises AssertionError: Raises an AssertionError if `parallel_mode` is not an instance of
:raises AssertionError: Raises an AssertionError if `parallel_mode` is not an instance of
:class:`colossalai.context.ParallelMode` or the seed for `parallel_mode` has been added
"""
assert
isinstance
(
...
...
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