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
27297b0b
Commit
27297b0b
authored
Apr 20, 2023
by
jerryyin
Browse files
misc changes according to review feedbacks
parent
ceb52de0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
src/cpp_generator.cpp
src/cpp_generator.cpp
+0
-3
src/targets/gpu/fuse_mlir.cpp
src/targets/gpu/fuse_mlir.cpp
+1
-1
No files found.
src/cpp_generator.cpp
View file @
27297b0b
...
@@ -174,9 +174,6 @@ std::string cpp_generator::generate_point_op(const operation& op,
...
@@ -174,9 +174,6 @@ std::string cpp_generator::generate_point_op(const operation& op,
else
if
(
with_char
(
::
isdigit
)(
key
[
0
]))
else
if
(
with_char
(
::
isdigit
)(
key
[
0
]))
{
{
auto
i
=
std
::
stoul
(
key
);
auto
i
=
std
::
stoul
(
key
);
// For an optional argument where i >= args.size(), treat
// the optional argument as a straight zero. This will
// cacel out the optional bias, if it exists.
if
(
i
>=
args
.
size
())
if
(
i
>=
args
.
size
())
MIGRAPHX_THROW
(
"Invalid argument index: "
+
key
);
MIGRAPHX_THROW
(
"Invalid argument index: "
+
key
);
return
args
.
at
(
i
);
return
args
.
at
(
i
);
...
...
src/targets/gpu/fuse_mlir.cpp
View file @
27297b0b
...
@@ -92,7 +92,7 @@ namespace {
...
@@ -92,7 +92,7 @@ namespace {
MIGRAPHX_PRED_MATCHER
(
is_mlir_conv
,
instruction_ref
ins
)
MIGRAPHX_PRED_MATCHER
(
is_mlir_conv
,
instruction_ref
ins
)
{
{
if
(
ins
->
name
()
!=
"convolution"
&&
ins
->
name
()
!=
"quant_convolution"
)
if
(
ins
->
name
()
!=
"convolution"
and
ins
->
name
()
!=
"quant_convolution"
)
return
false
;
return
false
;
value
v
=
ins
->
get_operator
().
to_value
();
value
v
=
ins
->
get_operator
().
to_value
();
auto
group
=
v
.
at
(
"group"
).
to
<
int
>
();
auto
group
=
v
.
at
(
"group"
).
to
<
int
>
();
...
...
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