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
gaoqiong
composable_kernel
Commits
907413ac
Commit
907413ac
authored
May 19, 2023
by
guangzlu
Browse files
fixed bug in dropout with global pos
parent
95a9bacf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
include/ck/tensor_operation/gpu/block/blockwise_dropout.hpp
include/ck/tensor_operation/gpu/block/blockwise_dropout.hpp
+3
-3
No files found.
include/ck/tensor_operation/gpu/block/blockwise_dropout.hpp
View file @
907413ac
...
@@ -69,7 +69,7 @@ struct BlockwiseDropout
...
@@ -69,7 +69,7 @@ struct BlockwiseDropout
ushort
tmp
[
tmp_size
];
ushort
tmp
[
tmp_size
];
for
(
int
i
=
0
;
i
<
philox_calls
;
i
++
)
for
(
int
i
=
0
;
i
<
philox_calls
;
i
++
)
{
{
ph
.
get_random_8x16
((
tmp
+
i
*
8
),
element_global_1d_id
);
ph
.
get_random_8x16
((
tmp
+
i
*
8
),
element_global_1d_id
+
i
*
8
);
}
}
block_sync_lds
();
block_sync_lds
();
...
@@ -142,7 +142,7 @@ struct BlockwiseDropout
...
@@ -142,7 +142,7 @@ struct BlockwiseDropout
ushort
tmp
[
tmp_size
];
ushort
tmp
[
tmp_size
];
for
(
int
i
=
0
;
i
<
philox_calls
;
i
++
)
for
(
int
i
=
0
;
i
<
philox_calls
;
i
++
)
{
{
ph
.
get_random_8x16
((
tmp
+
i
*
8
),
element_global_1d_id
+
philox_calls
*
8
);
ph
.
get_random_8x16
((
tmp
+
i
*
8
),
element_global_1d_id
+
i
*
8
);
}
}
block_sync_lds
();
block_sync_lds
();
...
@@ -184,7 +184,7 @@ struct BlockwiseDropout
...
@@ -184,7 +184,7 @@ struct BlockwiseDropout
ushort
tmp
[
tmp_size
];
ushort
tmp
[
tmp_size
];
for
(
int
i
=
0
;
i
<
philox_calls
;
i
++
)
for
(
int
i
=
0
;
i
<
philox_calls
;
i
++
)
{
{
ph
.
get_random_8x16
((
tmp
+
i
*
8
),
element_global_1d_id
);
ph
.
get_random_8x16
((
tmp
+
i
*
8
),
element_global_1d_id
+
i
*
8
);
}
}
block_sync_lds
();
block_sync_lds
();
...
...
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