diff --git a/test/test_helper.h b/test/test_helper.h index 3f298c5908293163aa0d25a209d146e04ff74068..58a7507f1b5e3fb600c583dee65cd228527f464d 100644 --- a/test/test_helper.h +++ b/test/test_helper.h @@ -62,9 +62,9 @@ void GetInput(const std::string &input_name, std::vector *input, } template -void GetInput(const std::string &input_name, paddle_mobile::framework::Tensor *input, +void GetInput(const std::string &input_name, + paddle_mobile::framework::Tensor *input, paddle_mobile::framework::DDim dims) { - T *input_ptr = input->mutable_data(dims); std::ifstream in(input_name, std::ios::in | std::ios::binary);