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
1559a09f
Commit
1559a09f
authored
Nov 09, 2022
by
zbian
Committed by
binmakeswell
Nov 09, 2022
Browse files
[NFC] polish amp.naive_amp.grad_scaler code style
parent
e9635eb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
colossalai/amp/naive_amp/grad_scaler/base_grad_scaler.py
colossalai/amp/naive_amp/grad_scaler/base_grad_scaler.py
+5
-3
No files found.
colossalai/amp/naive_amp/grad_scaler/base_grad_scaler.py
View file @
1559a09f
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
import
torch
from
abc
import
ABC
,
abstractmethod
from
colossalai.logging
import
get_dist_logger
from
torch
import
Tensor
from
typing
import
Dict
import
torch
from
torch
import
Tensor
from
colossalai.logging
import
get_dist_logger
__all__
=
[
'BaseGradScaler'
]
...
...
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