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
c7b2fd1c
Commit
c7b2fd1c
authored
Jul 28, 2023
by
Ted Themistokleous
Browse files
Add reshape lazy to arguments
parent
55e0dcba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
src/argument.cpp
src/argument.cpp
+6
-0
src/include/migraphx/argument.hpp
src/include/migraphx/argument.hpp
+1
-0
No files found.
src/argument.cpp
View file @
c7b2fd1c
...
...
@@ -133,6 +133,12 @@ argument argument::reshape(const shape& s) const
return
{
s
,
this
->
m_data
};
}
argument
argument
::
reshape_lazy
(
const
shape
&
s
)
const
{
assert
(
s
.
element_space
()
<=
this
->
get_shape
().
element_space
());
return
{
s
,
this
->
m_data
};
}
argument
::
data_t
argument
::
data_t
::
share
()
const
{
data_t
result
;
...
...
src/include/migraphx/argument.hpp
View file @
c7b2fd1c
...
...
@@ -82,6 +82,7 @@ struct MIGRAPHX_EXPORT argument : raw_data<argument>
const
shape
&
get_shape
()
const
;
argument
reshape
(
const
shape
&
s
)
const
;
argument
reshape_lazy
(
const
shape
&
s
)
const
;
argument
copy
()
const
;
...
...
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