compiler error on int8 mul op
Created by: luotao1
[13:20:15][Step 3/3] /workspace/paddle/fluid/operators/mul_op.cc: In member function ‘virtual paddle::framework::OpKernelType paddle::operators::MulOp::GetExpectedKernelType(const paddle::framework::ExecutionContext&) const’:
[13:20:15][Step 3/3] /workspace/paddle/fluid/operators/mul_op.cc:96:27: error: no match for ‘operator==’ (operand types are ‘paddle::framework::proto::VarType_Type’ and ‘paddle::framework::proto::VarType::Type() {aka paddle::framework::proto::VarType_Type()}’)
[13:20:15][Step 3/3] if (input_data_type == framework::DataTypeTrait<int8_t>::DataType ||
[13:20:15][Step 3/3] ^
[13:20:15][Step 3/3] /workspace/paddle/fluid/operators/mul_op.cc:97:27: error: no match for ‘operator==’ (operand types are ‘paddle::framework::proto::VarType_Type’ and ‘paddle::framework::proto::VarType::Type() {aka paddle::framework::proto::VarType_Type()}’)
[13:20:15][Step 3/3] input_data_type == framework::DataTypeTrait<uint8_t>::DataType) {
[13:20:15][Step 3/3] ^
[13:20:17][Step 3/3] make[2]: *** [paddle/fluid/operators/CMakeFiles/mul_op.dir/mul_op.cc.o] Error 1
[13:20:17][Step 3/3] make[2]: *** Waiting for unfinished jobs....
[13:20:17][Step 3/3] [ 33%] Building NVCC (Device) object paddle/fluid/operators/CMakeFiles/dropout_op.dir/dropout_op_generated_dropout_op.cu.o
[13:20:20][Step 3/3] [ 33%] Building NVCC (Device) object paddle/fluid/operators/CMakeFiles/average_accumulates_op.dir/average_accumulates_op_generated_average_accumulates_op.cu.o
[13:20:23][Step 3/3] make[1]: *** [paddle/fluid/operators/CMakeFiles/mul_op.dir/all] Error 2
[13:20:23][Step 3/3] make[1]: *** Waiting for unfinished jobs....