Skip to content

Commit

Permalink
[Relay] Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepapadim committed Jul 20, 2021
1 parent 9fd6552 commit 452815d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/relay/backend/vm/compiler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
#include "../../../target/source/codegen_source_base.h"
#include "../../op/op_common.h"
#include "../../transforms/pass_utils.h"
#include "../te_compiler.h"
#include "../te_compiler_cache.h"
#include "../utils.h"
#include "compiler.h"
#include "../te_compiler.h"

namespace tvm {
namespace relay {
Expand Down Expand Up @@ -859,7 +859,7 @@ class VMFunctionCompiler : ExprFunctor<void(const Expr& expr)> {
/*! \brief Total number of virtual registers allocated. */
size_t registers_num_;
/*! \brief Compiler engine to lower primitive functions. */
TECompiler compiler_;
TECompiler compiler_;
/*! \brief Global shared meta data */
VMCompilerContext* context_;
/*! \brief Target devices. */
Expand Down Expand Up @@ -1198,7 +1198,7 @@ void VMCompiler::Codegen() {
}
lib = codegen::CreateMetadataModule(params_, lib, ext_mods, target_host_, runtime::Metadata());
exec_->SetLib(lib);
}
}

ExprDeviceMap VMCompiler::AnalyzeContext() const {
Device default_device;
Expand Down
3 changes: 1 addition & 2 deletions src/relay/backend/vm/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@
#include "../../../runtime/vm/naive_allocator.h"
#include "../../../runtime/vm/profiler/vm.h"
#include "../../transforms/pass_utils.h"
#include "../te_compiler_cache.h"
#include "../te_compiler.h"

#include "../te_compiler_cache.h"

namespace tvm {
namespace relay {
Expand Down
7 changes: 3 additions & 4 deletions src/relay/transforms/memory_alloc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,14 @@
#include <unordered_set>
#include <vector>

#include "../backend/te_compiler.h"
#include "../backend/te_compiler_cache.h"
#include "../op/memory/memory.h"
#include "../op/vm/vm.h"
#include "./pass_utils.h"
#include "let_list.h"
#include "pattern_utils.h"

#include "../backend/te_compiler_cache.h"
#include "../backend/te_compiler.h"

using namespace tvm::runtime;
using namespace tvm::relay::tec;

Expand Down Expand Up @@ -275,7 +274,7 @@ class DialectRewriter : public ExprMutator {
const std::vector<Expr>& new_args) {
Array<Expr> shape_func_ins;

TECompiler compiler;
TECompiler compiler;

CCacheKey key(func, target_host_);
auto cfunc = compiler->LowerShapeFunc(key);
Expand Down

0 comments on commit 452815d

Please sign in to comment.