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
50b98355
Commit
50b98355
authored
Oct 16, 2023
by
Paul
Browse files
Remove output buffers
parent
8d8cd8f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/targets/gpu/driver/precompile_op.cpp
src/targets/gpu/driver/precompile_op.cpp
+2
-1
No files found.
src/targets/gpu/driver/precompile_op.cpp
View file @
50b98355
...
@@ -38,11 +38,12 @@ namespace driver {
...
@@ -38,11 +38,12 @@ namespace driver {
struct
precompile_op
:
action
<
precompile_op
>
struct
precompile_op
:
action
<
precompile_op
>
{
{
static
program
create_preop_program
(
const
operation
&
preop
,
const
std
::
vector
<
shape
>
&
inputs
)
static
program
create_preop_program
(
const
operation
&
preop
,
std
::
vector
<
shape
>
inputs
)
{
{
program
p
;
program
p
;
auto
mm
=
p
.
get_main_module
();
auto
mm
=
p
.
get_main_module
();
std
::
vector
<
instruction_ref
>
args
;
std
::
vector
<
instruction_ref
>
args
;
inputs
.
pop_back
();
transform
(
inputs
,
range
(
inputs
.
size
()),
std
::
back_inserter
(
args
),
[
&
](
auto
input
,
auto
i
)
{
transform
(
inputs
,
range
(
inputs
.
size
()),
std
::
back_inserter
(
args
),
[
&
](
auto
input
,
auto
i
)
{
return
mm
->
add_parameter
(
"x"
+
std
::
to_string
(
i
),
input
);
return
mm
->
add_parameter
(
"x"
+
std
::
to_string
(
i
),
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