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
aa085491
Commit
aa085491
authored
May 04, 2022
by
charlie
Browse files
Remove const on dyn_dim copy getters
parent
f8822187
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/include/migraphx/shape.hpp
src/include/migraphx/shape.hpp
+3
-3
src/shape.cpp
src/shape.cpp
+3
-3
No files found.
src/include/migraphx/shape.hpp
View file @
aa085491
...
@@ -133,9 +133,9 @@ struct shape
...
@@ -133,9 +133,9 @@ struct shape
const
std
::
vector
<
dynamic_dimension
>&
dyn_dims
()
const
;
const
std
::
vector
<
dynamic_dimension
>&
dyn_dims
()
const
;
const
std
::
vector
<
std
::
size_t
>
min_dyn_dims
()
const
;
std
::
vector
<
std
::
size_t
>
min_dyn_dims
()
const
;
const
std
::
vector
<
std
::
size_t
>
max_dyn_dims
()
const
;
std
::
vector
<
std
::
size_t
>
max_dyn_dims
()
const
;
const
std
::
vector
<
std
::
size_t
>
opt_dyn_dims
()
const
;
std
::
vector
<
std
::
size_t
>
opt_dyn_dims
()
const
;
/// Map multiple indices to space index
/// Map multiple indices to space index
std
::
size_t
index
(
std
::
initializer_list
<
std
::
size_t
>
l
)
const
;
std
::
size_t
index
(
std
::
initializer_list
<
std
::
size_t
>
l
)
const
;
...
...
src/shape.cpp
View file @
aa085491
...
@@ -383,7 +383,7 @@ bool shape::dynamic() const { return impl->m_dynamic; }
...
@@ -383,7 +383,7 @@ bool shape::dynamic() const { return impl->m_dynamic; }
const
std
::
vector
<
shape
::
dynamic_dimension
>&
shape
::
dyn_dims
()
const
{
return
impl
->
m_dyn_dims
;
}
const
std
::
vector
<
shape
::
dynamic_dimension
>&
shape
::
dyn_dims
()
const
{
return
impl
->
m_dyn_dims
;
}
const
std
::
vector
<
std
::
size_t
>
shape
::
min_dyn_dims
()
const
std
::
vector
<
std
::
size_t
>
shape
::
min_dyn_dims
()
const
{
{
auto
num_dims
=
dyn_dims
().
size
();
auto
num_dims
=
dyn_dims
().
size
();
std
::
vector
<
std
::
size_t
>
ret
{
num_dims
};
std
::
vector
<
std
::
size_t
>
ret
{
num_dims
};
...
@@ -394,7 +394,7 @@ const std::vector<std::size_t> shape::min_dyn_dims() const
...
@@ -394,7 +394,7 @@ const std::vector<std::size_t> shape::min_dyn_dims() const
return
ret
;
return
ret
;
}
}
const
std
::
vector
<
std
::
size_t
>
shape
::
max_dyn_dims
()
const
std
::
vector
<
std
::
size_t
>
shape
::
max_dyn_dims
()
const
{
{
auto
num_dims
=
dyn_dims
().
size
();
auto
num_dims
=
dyn_dims
().
size
();
std
::
vector
<
std
::
size_t
>
ret
{
num_dims
};
std
::
vector
<
std
::
size_t
>
ret
{
num_dims
};
...
@@ -405,7 +405,7 @@ const std::vector<std::size_t> shape::max_dyn_dims() const
...
@@ -405,7 +405,7 @@ const std::vector<std::size_t> shape::max_dyn_dims() const
return
ret
;
return
ret
;
}
}
const
std
::
vector
<
std
::
size_t
>
shape
::
opt_dyn_dims
()
const
std
::
vector
<
std
::
size_t
>
shape
::
opt_dyn_dims
()
const
{
{
auto
num_dims
=
dyn_dims
().
size
();
auto
num_dims
=
dyn_dims
().
size
();
std
::
vector
<
std
::
size_t
>
ret
{
num_dims
};
std
::
vector
<
std
::
size_t
>
ret
{
num_dims
};
...
...
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