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
9660c64c
Unverified
Commit
9660c64c
authored
Oct 03, 2023
by
Umang Yadav
Committed by
GitHub
Oct 03, 2023
Browse files
Avoid using Template argument deduction for Vector (#2276)
parent
b72cae6d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
.github/workflows/ci.yaml
.github/workflows/ci.yaml
+1
-0
src/onnx/parse_resize.cpp
src/onnx/parse_resize.cpp
+2
-1
No files found.
.github/workflows/ci.yaml
View file @
9660c64c
...
@@ -281,6 +281,7 @@ jobs:
...
@@ -281,6 +281,7 @@ jobs:
-DBUILD_DEV=On \
-DBUILD_DEV=On \
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_CXX_FLAGS="-Werror" \
-DGPU_TARGETS=gfx908 \
-DGPU_TARGETS=gfx908 \
..
..
make -j$(nproc) tests driver
make -j$(nproc) tests driver
...
...
src/onnx/parse_resize.cpp
View file @
9660c64c
...
@@ -320,7 +320,8 @@ struct parse_resize : op_parser<parse_resize>
...
@@ -320,7 +320,8 @@ struct parse_resize : op_parser<parse_resize>
// get the number of dimensions
// get the number of dimensions
std
::
size_t
n_dim
=
out_lens
.
size
();
std
::
size_t
n_dim
=
out_lens
.
size
();
auto
vvv_ind
=
std
::
vector
(
n_dim
,
std
::
vector
(
2
,
std
::
vector
<
size_t
>
(
out_elements
)));
std
::
vector
<
std
::
vector
<
std
::
size_t
>>
vv_ind
(
2
,
std
::
vector
<
std
::
size_t
>
(
out_elements
));
std
::
vector
<
std
::
vector
<
std
::
vector
<
std
::
size_t
>>>
vvv_ind
(
n_dim
,
vv_ind
);
std
::
vector
<
std
::
vector
<
float
>>
delta
(
n_dim
,
std
::
vector
<
float
>
(
out_elements
));
std
::
vector
<
std
::
vector
<
float
>>
delta
(
n_dim
,
std
::
vector
<
float
>
(
out_elements
));
shape_for_each
(
out_s
,
[
&
](
const
auto
&
out_idx_v
,
size_t
out_idx
)
{
shape_for_each
(
out_s
,
[
&
](
const
auto
&
out_idx_v
,
size_t
out_idx
)
{
...
...
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