Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 10, 2024
1 parent 382441f commit 9956537
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions include/tvm/scheme/internal/CompiledAssignment.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class WeightMultBase<NONE>
public:
static const bool useArg = false;

WeightMultBase(NoArg){};
WeightMultBase(NoArg) {};

template<typename T>
const T & applyWeightMult(const T & M)
Expand All @@ -376,7 +376,7 @@ class WeightMultBase<MINUS>
public:
static const bool useArg = false;

WeightMultBase(NoArg){};
WeightMultBase(NoArg) {};

double applyWeightMult(const double & M) { return -M; }

Expand Down Expand Up @@ -408,7 +408,7 @@ template<>
class WeightMultBase<SCALAR>
{
public:
WeightMultBase(const double & s) : s_(s){};
WeightMultBase(const double & s) : s_(s) {};

template<typename T>
decltype(double() * std::declval<T>()) applyWeightMult(const T & M)
Expand Down
16 changes: 11 additions & 5 deletions src/graph/Log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@ std::string Log::generateDot(const std::vector<Log::Output> & 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
Expand Down Expand Up @@ -547,7 +549,8 @@ std::string Log::generateDot(const std::vector<Log::Output> & outHighlight,
dot << nodeName(o) << "->" << nodeName(u);
if(oh[o] && uh[u])
{
dot << " " << "[color=orange]";
dot << " "
<< "[color=orange]";
}
dot << ";\n";
}
Expand All @@ -560,7 +563,8 @@ std::string Log::generateDot(const std::vector<Log::Output> & outHighlight,
dot << nodeName(u) << "->" << nodeName(o);
if(oh[o] && uh[u])
{
dot << " " << "[color=orange]";
dot << " "
<< "[color=orange]";
}
dot << ";\n";
}
Expand All @@ -573,7 +577,8 @@ std::string Log::generateDot(const std::vector<Log::Output> & outHighlight,
dot << nodeName(from) << "->" << nodeName(to);
if(uh[from] && uh[to])
{
dot << " " << "[color=orange]";
dot << " "
<< "[color=orange]";
}
dot << ";\n";
}
Expand All @@ -587,7 +592,8 @@ std::string Log::generateDot(const std::vector<Log::Output> & outHighlight,
dot << nodeName(from) << "->" << nodeName(to);
if(oh[from] && oh[to])
{
dot << " " << "[color=orange]";
dot << " "
<< "[color=orange]";
}
dot << ";\n";
}
Expand Down

0 comments on commit 9956537

Please sign in to comment.