From 4fb2e3c39b5af722e3a20f5ac0db0e4d2b381fab Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Mar 2022 18:01:27 +0800 Subject: [PATCH] Bump actions/cache from 2.1.7 to 3 (#1305) * Bump actions/cache from 2.1.7 to 3 Bumps [actions/cache](https://github.com/actions/cache) from 2.1.7 to 3. - [Release notes](https://github.com/actions/cache/releases) - [Commits](https://github.com/actions/cache/compare/v2.1.7...v3) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * apply code-format changes Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] --- .github/workflows/build-and-test.yml | 6 +++--- tools/convert_tool/onnx/onnx2tengine.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index ea1cd0f7..6d8679a2 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -41,7 +41,7 @@ jobs: # - name: cache-qemu # id: cache-qemu - # uses: actions/cache@v2.1.7 + # uses: actions/cache@v3 # with: # path: qemu-install # key: qemu-arm-install-1 @@ -90,7 +90,7 @@ jobs: # - name: cache-qemu # id: cache-qemu - # uses: actions/cache@v2.1.7 + # uses: actions/cache@v3 # with: # path: qemu-install # key: qemu-aarch64-install-1 @@ -194,7 +194,7 @@ jobs: - name: cache-qemu id: cache-qemu - uses: actions/cache@v2.1.7 + uses: actions/cache@v3 with: path: qemu-install key: qemu-mips64el-install-1 diff --git a/tools/convert_tool/onnx/onnx2tengine.cpp b/tools/convert_tool/onnx/onnx2tengine.cpp index 14f244d5..f898dd08 100644 --- a/tools/convert_tool/onnx/onnx2tengine.cpp +++ b/tools/convert_tool/onnx/onnx2tengine.cpp @@ -326,10 +326,12 @@ int onnx_serializer::load_constant_tensor(ir_graph_t* graph, const onnx::GraphPr { if (node_tensor.count(node.input(inp_idx)) == 0) continue; - if (!logged) { + if (!logged) + { logged = true; if (!(op == "Reshape" || op == "Gather" || op == "Div" || op == "Resize" || op == "Upsample" - || op == "Clip" || op == "Slice" || op == "Expand")) { + || op == "Clip" || op == "Slice" || op == "Expand")) + { auto msg = "Load a Constant node \"%s\" as input[%d] of node \"%s\".\n"; printf(msg, node.input(inp_idx).c_str(), inp_idx, node.name().c_str()); } -- GitLab