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
9420d3ae
Commit
9420d3ae
authored
Mar 31, 2022
by
YuliangLiu0306
Committed by
binmakeswell
Apr 06, 2022
Browse files
fix format (#567)
parent
0f1da44e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
colossalai/kernel/cuda_native/csrc/kernels/include/softmax.h
colossalai/kernel/cuda_native/csrc/kernels/include/softmax.h
+4
-7
No files found.
colossalai/kernel/cuda_native/csrc/kernels/include/softmax.h
View file @
9420d3ae
...
...
@@ -10,9 +10,8 @@
using
namespace
std
;
template
<
typename
T
>
class
Softmax
{
public:
template
<
typename
T
>
class
Softmax
{
public:
struct
Config
{
size_t
nhead
;
Config
(
size_t
nhead
)
:
nhead
(
nhead
)
{}
...
...
@@ -35,10 +34,8 @@ class Softmax {
stream
);
}
void
reset_size
(
size_t
nhead
)
{
config_
.
nhead
=
nhead
;
}
void
reset_size
(
size_t
nhead
)
{
config_
.
nhead
=
nhead
;
}
private:
private:
Config
config_
;
};
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