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
174b9c1d
Commit
174b9c1d
authored
Mar 31, 2022
by
wky
Committed by
binmakeswell
Apr 06, 2022
Browse files
fix format (#574)
parent
dfe423ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
colossalai/kernel/cuda_native/csrc/kernels/include/normalize_layer.h
...kernel/cuda_native/csrc/kernels/include/normalize_layer.h
+3
-4
No files found.
colossalai/kernel/cuda_native/csrc/kernels/include/normalize_layer.h
View file @
174b9c1d
...
@@ -10,9 +10,8 @@
...
@@ -10,9 +10,8 @@
using
namespace
std
;
using
namespace
std
;
template
<
typename
T
>
template
<
typename
T
>
class
Normalize_Layer
{
class
Normalize_Layer
{
public:
public:
struct
Config
{
struct
Config
{
uint32_t
hidden_dim
;
uint32_t
hidden_dim
;
bool
use_mean
;
bool
use_mean
;
...
@@ -58,7 +57,7 @@ class Normalize_Layer {
...
@@ -58,7 +57,7 @@ class Normalize_Layer {
inline
bool
use_mean
()
const
{
return
config_
.
use_mean
;
}
inline
bool
use_mean
()
const
{
return
config_
.
use_mean
;
}
private:
private:
Config
config_
;
Config
config_
;
T
*
vars_
;
T
*
vars_
;
T
*
means_
;
T
*
means_
;
...
...
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