Skip to content

Commit

Permalink
Avoid using Template argument deduction for Vector (#2276)
Browse files Browse the repository at this point in the history
  • Loading branch information
umangyadav authored Oct 3, 2023
1 parent b72cae6 commit 9660c64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ jobs:
-DBUILD_DEV=On \
-DCMAKE_CXX_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_C_COMPILER_LAUNCHER=/usr/local/bin/ccache \
-DCMAKE_CXX_FLAGS="-Werror" \
-DGPU_TARGETS=gfx908 \
..
make -j$(nproc) tests driver
Expand Down
3 changes: 2 additions & 1 deletion src/onnx/parse_resize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ struct parse_resize : op_parser<parse_resize>

// get the number of dimensions
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));

shape_for_each(out_s, [&](const auto& out_idx_v, size_t out_idx) {
Expand Down

0 comments on commit 9660c64

Please sign in to comment.