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
caa44330
Commit
caa44330
authored
Jul 18, 2023
by
アマデウス
Committed by
binmakeswell
Jul 26, 2023
Browse files
[NFC] fix format of application/Chat/coati/trainer/utils.py (#4273)
parent
1ce997da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
applications/Chat/coati/trainer/utils.py
applications/Chat/coati/trainer/utils.py
+4
-3
No files found.
applications/Chat/coati/trainer/utils.py
View file @
caa44330
...
@@ -14,9 +14,10 @@ class CycledDataLoader:
...
@@ -14,9 +14,10 @@ class CycledDataLoader:
NOTE: next(iter(dataloader)) is not equivalent to for batch in dataloader: break, it causes slightly different behavior.
NOTE: next(iter(dataloader)) is not equivalent to for batch in dataloader: break, it causes slightly different behavior.
"""
"""
def
__init__
(
self
,
def
__init__
(
dataloader
:
DataLoader
,
self
,
)
->
None
:
dataloader
:
DataLoader
,
)
->
None
:
self
.
dataloader
=
dataloader
self
.
dataloader
=
dataloader
self
.
count
=
0
self
.
count
=
0
...
...
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