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
MIGraphX
Commits
e39d55d1
Commit
e39d55d1
authored
May 03, 2019
by
Khalique
Browse files
revert brace change, changed type for output_alias
parent
3c089942
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/targets/gpu/include/migraphx/gpu/clip.hpp
src/targets/gpu/include/migraphx/gpu/clip.hpp
+1
-1
test/gpu/miopen.cpp
test/gpu/miopen.cpp
+1
-1
test/onnx/onnx_test.cpp
test/onnx/onnx_test.cpp
+1
-1
No files found.
src/targets/gpu/include/migraphx/gpu/clip.hpp
View file @
e39d55d1
...
...
@@ -17,7 +17,7 @@ struct hip_clip
shape
compute_shape
(
std
::
vector
<
shape
>
inputs
)
const
;
argument
compute
(
context
&
ctx
,
const
shape
&
output_shape
,
const
std
::
vector
<
argument
>&
args
)
const
;
in
t
output_alias
(
const
std
::
vector
<
shape
>&
shapes
)
const
{
return
shapes
.
size
()
-
1
;
}
std
::
ptrdiff_
t
output_alias
(
const
std
::
vector
<
shape
>&
shapes
)
const
{
return
shapes
.
size
()
-
1
;
}
};
}
// namespace gpu
...
...
test/gpu/miopen.cpp
View file @
e39d55d1
...
...
@@ -1315,7 +1315,7 @@ struct test_clip : verify_program<test_clip>
{
migraphx
::
program
p
;
auto
x
=
p
.
add_parameter
(
"x"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
3
}});
p
.
add_instruction
(
migraphx
::
op
::
clip
(
6.0
,
0.0
)
,
x
);
p
.
add_instruction
(
migraphx
::
op
::
clip
{
6.0
,
0.0
}
,
x
);
return
p
;
}
};
...
...
test/onnx/onnx_test.cpp
View file @
e39d55d1
...
...
@@ -798,7 +798,7 @@ TEST_CASE(clip_test)
{
migraphx
::
program
p
;
auto
l0
=
p
.
add_parameter
(
"0"
,
migraphx
::
shape
{
migraphx
::
shape
::
float_type
,
{
3
}});
p
.
add_instruction
(
migraphx
::
op
::
clip
(
6.0
,
0.0
)
,
l0
);
p
.
add_instruction
(
migraphx
::
op
::
clip
{
6.0
,
0.0
}
,
l0
);
auto
prog
=
migraphx
::
parse_onnx
(
"clip_test.onnx"
);
EXPECT
(
p
==
prog
);
...
...
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