From d1ba4d82c6b8a0a49d415a21091fc7f022049c21 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 23:01:53 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/mirrors-clang-format: v17.0.6 → v18.1.1](https://github.com/pre-commit/mirrors-clang-format/compare/v17.0.6...v18.1.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bdfb6fb4..b1366bf4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: check-useless-excludes - id: check-hooks-apply - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v17.0.6 + rev: v18.1.1 hooks: - id: clang-format - repo: https://github.com/pre-commit/pre-commit-hooks From 1bcc3ebf35ed4305473e140f82935c146b413e96 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 23:03:18 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .../tvm/scheme/internal/CompiledAssignment.h | 20 +++++-------------- src/graph/Log.cpp | 16 +++++---------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/include/tvm/scheme/internal/CompiledAssignment.h b/include/tvm/scheme/internal/CompiledAssignment.h index 881f12f9..f411fde3 100644 --- a/include/tvm/scheme/internal/CompiledAssignment.h +++ b/include/tvm/scheme/internal/CompiledAssignment.h @@ -738,12 +738,8 @@ class CompiledAssignment CompiledAssignment(const Eigen::Ref & to) : to_(to) {} public: - void run() - { /* Do nothing */ - } - void from(const Eigen::Ref &) - { /* Do nothing */ - } + void run() { /* Do nothing */ } + void from(const Eigen::Ref &) { /* Do nothing */ } void to(const Eigen::Ref & to) { // We want to do to_ = to but there is no operator= for Eigen::Ref, @@ -770,9 +766,7 @@ class CompiledAssignment public: void run() { to_.setZero(); } - void from(const Eigen::Ref &) - { /* Do nothing */ - } + void from(const Eigen::Ref &) { /* Do nothing */ } void to(const Eigen::Ref & to) { // We want to do to_ = to but there is no operator= for Eigen::Ref, @@ -799,9 +793,7 @@ class CompiledAssignment public: void run() { to_.array() = to_.array().min(0); } - void from(const Eigen::Ref &) - { /* Do nothing */ - } + void from(const Eigen::Ref &) { /* Do nothing */ } void to(const Eigen::Ref & to) { new(&to_) Eigen::Ref(to); } private: @@ -823,9 +815,7 @@ class CompiledAssignment public: void run() { to_.array() = to_.array().max(0); } - void from(const Eigen::Ref &) - { /* Do nothing */ - } + void from(const Eigen::Ref &) { /* Do nothing */ } void to(const Eigen::Ref & to) { new(&to_) Eigen::Ref(to); } private: diff --git a/src/graph/Log.cpp b/src/graph/Log.cpp index aabc4e75..b96ccce3 100644 --- a/src/graph/Log.cpp +++ b/src/graph/Log.cpp @@ -492,9 +492,7 @@ std::string Log::generateDot(const std::vector & outHighlight, // generate the dot code std::stringstream dot; - dot << "digraph \"" - << "Update graph" - << "\"\n{\n"; + dot << "digraph \"" << "Update graph" << "\"\n{\n"; dot << " rankdir=\"LR\";\n"; // Process each node @@ -549,8 +547,7 @@ std::string Log::generateDot(const std::vector & outHighlight, dot << nodeName(o) << "->" << nodeName(u); if(oh[o] && uh[u]) { - dot << " " - << "[color=orange]"; + dot << " " << "[color=orange]"; } dot << ";\n"; } @@ -563,8 +560,7 @@ std::string Log::generateDot(const std::vector & outHighlight, dot << nodeName(u) << "->" << nodeName(o); if(oh[o] && uh[u]) { - dot << " " - << "[color=orange]"; + dot << " " << "[color=orange]"; } dot << ";\n"; } @@ -577,8 +573,7 @@ std::string Log::generateDot(const std::vector & outHighlight, dot << nodeName(from) << "->" << nodeName(to); if(uh[from] && uh[to]) { - dot << " " - << "[color=orange]"; + dot << " " << "[color=orange]"; } dot << ";\n"; } @@ -592,8 +587,7 @@ std::string Log::generateDot(const std::vector & outHighlight, dot << nodeName(from) << "->" << nodeName(to); if(oh[from] && oh[to]) { - dot << " " - << "[color=orange]"; + dot << " " << "[color=orange]"; } dot << ";\n"; }