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
0ef0d0bb
Commit
0ef0d0bb
authored
Nov 27, 2023
by
charlie
Browse files
fixes
parent
b72ad090
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/common.cpp
src/common.cpp
+1
-1
No files found.
src/common.cpp
View file @
0ef0d0bb
...
@@ -169,7 +169,7 @@ insert_common_args(module& m, instruction_ref ins, std::vector<instruction_ref>
...
@@ -169,7 +169,7 @@ insert_common_args(module& m, instruction_ref ins, std::vector<instruction_ref>
auto
c_dyn_dims
=
compute_common_dyn_dims
(
input_shapes
);
auto
c_dyn_dims
=
compute_common_dyn_dims
(
input_shapes
);
auto
s0
=
inputs
[
0
]
->
get_shape
();
auto
s0
=
inputs
[
0
]
->
get_shape
();
//
changed to
always add th
e
multibroadcast
to handle the cases from split_single_dyn_dim
// always add
bo
th multibroadcast
instructions for dynamic shapes
inputs
[
0
]
=
m
.
insert_instruction
(
inputs
[
0
]
=
m
.
insert_instruction
(
ins
,
make_op
(
"multibroadcast"
,
{{
"out_dyn_dims"
,
to_value
(
c_dyn_dims
)}}),
inputs
);
ins
,
make_op
(
"multibroadcast"
,
{{
"out_dyn_dims"
,
to_value
(
c_dyn_dims
)}}),
inputs
);
std
::
transform
(
inputs
.
begin
()
+
1
,
inputs
.
end
(),
inputs
.
begin
()
+
1
,
[
&
](
auto
input
)
{
std
::
transform
(
inputs
.
begin
()
+
1
,
inputs
.
end
(),
inputs
.
begin
()
+
1
,
[
&
](
auto
input
)
{
...
...
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