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
118e05c7
"...diffusion/python_stable_diffusion_21/requirements.txt" did not exist on "3d089f91c9e3d94e59aaa3e9947ab30a32e2ea78"
Commit
118e05c7
authored
Apr 13, 2023
by
Paul
Browse files
Format
parent
8671f8b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/include/migraphx/op/reshape.hpp
src/include/migraphx/op/reshape.hpp
+2
-2
No files found.
src/include/migraphx/op/reshape.hpp
View file @
118e05c7
...
@@ -205,7 +205,7 @@ struct reshape
...
@@ -205,7 +205,7 @@ struct reshape
shape
static_compute_shape
(
std
::
vector
<
shape
>
inputs
,
std
::
size_t
n_neg_dims
)
const
shape
static_compute_shape
(
std
::
vector
<
shape
>
inputs
,
std
::
size_t
n_neg_dims
)
const
{
{
check_shapes
{
inputs
,
*
this
}.
has
(
1
);
check_shapes
{
inputs
,
*
this
}.
has
(
1
);
auto
&&
idims
=
inputs
.
front
().
lens
();
auto
&&
idims
=
inputs
.
front
().
lens
();
// auto&& istrides = inputs.front().strides();
// auto&& istrides = inputs.front().strides();
std
::
vector
<
std
::
size_t
>
rdims
(
dims
.
begin
(),
dims
.
end
());
std
::
vector
<
std
::
size_t
>
rdims
(
dims
.
begin
(),
dims
.
end
());
...
@@ -233,7 +233,7 @@ struct reshape
...
@@ -233,7 +233,7 @@ struct reshape
}
}
auto
s
=
reshape_dims
(
inputs
.
front
(),
rdims
);
auto
s
=
reshape_dims
(
inputs
.
front
(),
rdims
);
if
(
not
s
.
has_value
())
if
(
not
s
.
has_value
())
MIGRAPHX_THROW
(
"Reshape on axis that is not packed."
);
MIGRAPHX_THROW
(
"Reshape on axis that is not packed."
);
if
(
s
->
elements
()
!=
inputs
.
front
().
elements
())
if
(
s
->
elements
()
!=
inputs
.
front
().
elements
())
...
...
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