diff --git a/lite/core/mir/fusion/quant_dequant_op_fuser.cc b/lite/core/mir/fusion/quant_dequant_op_fuser.cc index 2c761c6c2a08d24a52db41478456f8db332ef2d2..0327a50af3387588cf067c637762b625cadfc58f 100644 --- a/lite/core/mir/fusion/quant_dequant_op_fuser.cc +++ b/lite/core/mir/fusion/quant_dequant_op_fuser.cc @@ -103,12 +103,6 @@ void DeleteDynamicQuantOpFuser::InsertNewNode(SSAGraph* graph, // obtain values, save values and relink node int bit_length = quant_node->stmt()->op_info()->GetAttr("bit_length"); - int range = ((1 << (bit_length - 1)) - 1); - auto* scope = quant_node->stmt()->op()->scope(); - auto* scale_tensor = scope->FindVar(output_scale_node->arg()->name) - ->GetMutable(); - float scale_value = scale_tensor->data()[0] / range; - auto outlinks = output_act_node->outlinks; for (auto* quantized_node : outlinks) { auto* op_desc = quantized_node->stmt()->mutable_op_info(); diff --git a/lite/core/mir/kernel_place_correct_pass.h b/lite/core/mir/kernel_place_correct_pass.h index 5fab5000862378976c16448f5a82f052ffbc20a5..35cd2e6ef7e4a82335765e89bb6f80df07e4f903 100644 --- a/lite/core/mir/kernel_place_correct_pass.h +++ b/lite/core/mir/kernel_place_correct_pass.h @@ -86,7 +86,6 @@ class KernelPlaceCorrectPass : public DebugPass { << node_name; VLOG(4) << "-- input arg_name:" << arg_name << " " << "-- node name:" << node_name; - auto type = inst.picked_kernel().GetInputDeclType(arg_name); if (!x_in->AsArg().type) { need_correct_place &= false; } else { @@ -108,7 +107,6 @@ class KernelPlaceCorrectPass : public DebugPass { << node_name << " in Inst " << inst.op_type(); VLOG(4) << "-- output arg_name " << arg_name; - auto type = inst.picked_kernel().GetOutputDeclType(arg_name); if (!x_out->AsArg().type) { need_correct_place &= false; } else { diff --git a/lite/gen_code/paddle_infer.h b/lite/gen_code/paddle_infer.h old mode 100755 new mode 100644 index dc2d56422cd710778a36c5e85f42e701fbfcbf0f..e01ffc25e29ca94166e8fe12b0643ae9e914001d --- a/lite/gen_code/paddle_infer.h +++ b/lite/gen_code/paddle_infer.h @@ -46,6 +46,7 @@ class Tensor { */ class PaddlePredictor { public: + void Init(); std::unique_ptr GetTensor(const std::string &id) const; std::unique_ptr GetMutableTensor(const std::string &id); diff --git a/lite/kernels/host/one_hot_compute.cc b/lite/kernels/host/one_hot_compute.cc index e0af6f5173f367bb9b2e06de10499ee36806379c..97e98a7ef5fda005802c6433e1e7cf8d15a84a13 100755 --- a/lite/kernels/host/one_hot_compute.cc +++ b/lite/kernels/host/one_hot_compute.cc @@ -16,7 +16,6 @@ #include #include -#include "lite/backends/fpga/KD/debugger.hpp" #include "lite/kernels/host/one_hot_compute.h" #include "lite/utils/paddle_enforce.h" diff --git a/lite/operators/one_hot_op.cc b/lite/operators/one_hot_op.cc index 023cdc23aeb8329736b7438af2c52cbfa899c75c..397326abf7a305c28e5db5b501b553904c482d1a 100644 --- a/lite/operators/one_hot_op.cc +++ b/lite/operators/one_hot_op.cc @@ -15,8 +15,6 @@ #include "lite/operators/one_hot_op.h" #include "lite/core/op_registry.h" -#include "lite/backends/fpga/KD/debugger.hpp" - namespace paddle { namespace lite { namespace operators {