Skip to content

Commit

Permalink
[Tools:Bugfix] Fix wrong path of schema head file for quantization tools
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaying committed Oct 30, 2019
1 parent 908f4b9 commit 9ad653d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/quantization/Helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#include <string>
#include "ImageProcess.hpp"
#include "Tensor.hpp"
#include "converter/source/IR/MNN_generated.h"
#include "MNN_generated.h"
#include "logkit.h"

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion tools/quantization/calibration.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "ImageProcess.hpp"
#include "Interpreter.hpp"
#include "TensorStatistic.hpp"
#include "converter/source/IR/MNN_generated.h"
#include "MNN_generated.h"

// Calibration find the optimal threshold according to KL-divergence
// process: the below process is applied on the whole Conv|DepthwiseConv layers
Expand Down
3 changes: 1 addition & 2 deletions tools/train/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ include_directories(${MNN_PATH}/express/include)
include_directories(source/transform)
include_directories(source/train)
file(GLOB BASIC_INCLUDE ${MNN_PATH}/include/*)
file(GLOB SCHEMA ${MNN_PATH}/tools/converter/source/IR/*.h ${MNN_PATH}/tools/converter/source/IR/flatbuffers/*.h )
file(GLOB TRANSFORMER ./source/transform/*)
file(GLOB OPERATOR ./source/operator/*)

include_directories(source/operator)
add_library(transformer SHARED ${TRANSFORMER} ${SCHEMA} ${BASIC_INCLUDE})
add_library(transformer SHARED ${TRANSFORMER} ${BASIC_INCLUDE})
target_link_libraries(transformer MNN MNN_Express)

add_executable(transformer.out ./source/exec/transformer.cpp)
Expand Down

0 comments on commit 9ad653d

Please sign in to comment.