From f50115c4003b1b96cc0c59a4fe1c39f25c6907bb Mon Sep 17 00:00:00 2001 From: qnqinan Date: Tue, 21 Aug 2018 11:30:49 +0800 Subject: [PATCH] update name of scale address in feed op --- src/operators/feed_op.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/operators/feed_op.h b/src/operators/feed_op.h index 33ccd574e3..fb219a4819 100644 --- a/src/operators/feed_op.h +++ b/src/operators/feed_op.h @@ -49,7 +49,7 @@ class FeedOp : public framework::OperatorBase { auto input_ptr = input->data(); Tensor *output = param_.Out(); auto output_ptr = output->mutable_data(); - auto out_address = output->fpga_args().scale_pointer(); + auto output_scale_address = output->fpga_args().scale_pointer(); fpga::BypassArgs args; args.convert_type = fpga::DATA_FP32_TO_FP16; args.layout_type = fpga::LAYOUT_CHW_TO_HWC; @@ -60,7 +60,7 @@ class FeedOp : public framework::OperatorBase { args.image.pad_height = 0; args.image.pad_width = 0; args.output.address = output_ptr; - args.output.scale_address = out_address; + args.output.scale_address = output_scale_address; fpga::PerformBypass(args); } -- GitLab