diff --git a/mace/ops/ops_test_util.h b/mace/ops/ops_test_util.h index 72d97b3e816b8974aa744f027f41603f647c1064..ece4885717ad9336f753be57499f4c2eec87e548 100644 --- a/mace/ops/ops_test_util.h +++ b/mace/ops/ops_test_util.h @@ -394,6 +394,7 @@ void BufferToImage(OpsTestNet *net, const std::string &output_name, const kernels::BufferType type) { MACE_CHECK_NOTNULL(net); + OpDefBuilder("BufferToImage", "BufferToImageTest") .Input(input_name) .Output(output_name) @@ -412,6 +413,8 @@ void ImageToBuffer(OpsTestNet *net, const std::string &input_name, const std::string &output_name, const kernels::BufferType type) { + MACE_CHECK_NOTNULL(net); + OpDefBuilder("ImageToBuffer", "ImageToBufferTest") .Input(input_name) .Output(output_name)