Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
b85b8559
Commit
b85b8559
authored
Aug 04, 2018
by
Paul
Browse files
Disable nonpacked test for now
parent
647d7908
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
src/targets/cpu/gemm.cpp
src/targets/cpu/gemm.cpp
+2
-3
test/gpu/miopen.cpp
test/gpu/miopen.cpp
+13
-0
No files found.
src/targets/cpu/gemm.cpp
View file @
b85b8559
...
...
@@ -14,10 +14,9 @@ static auto make_mat(tensor_view<T> x)
{
const
auto
&
s
=
x
.
get_shape
();
assert
(
s
.
lens
().
size
()
==
2
);
assert
(
s
.
packed
());
if
(
s
.
transposed
())
return
matrix
<
T
>
{
x
.
data
(),
s
.
lens
()[
1
],
s
.
lens
()[
0
]};
return
matrix
<
T
>
{
x
.
data
(),
s
.
lens
()[
0
],
s
.
lens
()[
1
]};
return
matrix
<
T
>
{
x
.
data
(),
s
.
lens
()[
1
],
s
.
lens
()[
0
]
,
s
.
strides
()[
1
]
};
return
matrix
<
T
>
{
x
.
data
(),
s
.
lens
()[
0
],
s
.
lens
()[
1
]
,
s
.
strides
()[
0
]
};
}
template
<
class
T
,
class
F
>
...
...
test/gpu/miopen.cpp
View file @
b85b8559
...
...
@@ -141,6 +141,18 @@ struct test_gemm
}
};
struct
test_gemm_ld
{
migraph
::
program
create_program
()
const
{
migraph
::
program
p
;
auto
a
=
p
.
add_parameter
(
"a"
,
migraph
::
shape
{
migraph
::
shape
::
float_type
,
{
4
,
5
},
{
10
,
1
}});
auto
b
=
p
.
add_parameter
(
"b"
,
migraph
::
shape
{
migraph
::
shape
::
float_type
,
{
5
,
3
},
{
20
,
1
}});
p
.
add_instruction
(
migraph
::
gemm
{},
a
,
b
);
return
p
;
}
};
struct
test_gemm_transposeb
{
migraph
::
program
create_program
()
const
...
...
@@ -214,6 +226,7 @@ int main()
verify_program
<
test_conv_relu
>
();
verify_program
<
test_conv_pooling
>
();
verify_program
<
test_gemm
>
();
// verify_program<test_gemm_ld>();
verify_program
<
test_gemm_transposeb
>
();
verify_program
<
test_gemm_transposea
>
();
verify_program
<
test_gemm_transposeab
>
();
...
...
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