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
17b72bd6
"host/host_tensor/include/device.hpp" did not exist on "01055d95d9df0fd79eeaa02336593d6432b09a7f"
Commit
17b72bd6
authored
Sep 13, 2023
by
Astha Rai
Browse files
changes made for testing
parent
edac496b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
example/44_elementwise_permute/elementwise_permute_5D_3d.cpp
example/44_elementwise_permute/elementwise_permute_5D_3d.cpp
+4
-1
No files found.
example/44_elementwise_permute/elementwise_permute_5D_3d.cpp
View file @
17b72bd6
...
...
@@ -61,7 +61,10 @@ int main()
Tensor
<
ADataType
>
a
(
ncdhw
);
Tensor
<
BDataType
>
b
(
nchwd
);
a
.
GenerateTensorValue
(
GeneratorTensor_3
<
ADataType
>
{
0.0
,
1.0
});
//a.GenerateTensorValue(GeneratorTensor_3<ADataType>{0.0, 1.0});
for
(
std
::
size_t
i
=
0
;
i
<
a
.
mData
.
size
();
i
++
){
a
.
mData
[
i
]
=
i
;
}
DeviceMem
a_device_buf
(
sizeof
(
ADataType
)
*
a
.
mDesc
.
GetElementSpaceSize
());
DeviceMem
b_device_buf
(
sizeof
(
BDataType
)
*
b
.
mDesc
.
GetElementSpaceSize
());
...
...
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