From 17160531e75bfe8e638ec07cf2b5a4cbdc594a2d Mon Sep 17 00:00:00 2001 From: zhangyang Date: Wed, 15 Aug 2018 11:51:14 +0800 Subject: [PATCH] update feedop --- src/operators/feed_op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operators/feed_op.h b/src/operators/feed_op.h index 3ca2b5668d..286b0076ef 100644 --- a/src/operators/feed_op.h +++ b/src/operators/feed_op.h @@ -47,7 +47,7 @@ class FeedOp : public framework::OperatorBase { fpga::BypassArgs args; args.convert_type = fpga::DATA_FP32_TO_FP16; args.layout_type = fpga::LAYOUT_CHW_TO_HWC; - args.image.address = nullptr; + args.image.address = (void *)input_ptr; args.image.channels = input->dims()[1]; args.image.height = input->dims()[2]; args.image.width = input->dims()[3]; -- GitLab