From: 김용섭/동작제어Lab(SR)/Engineer/삼성전자 Date: Thu, 23 Aug 2018 05:17:49 +0000 (+0900) Subject: Pass initing weight and bias on compilation time if data is null (#2427) X-Git-Tag: 0.2~193 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54064b3f24f772f3b27d108311223db0bd149676;p=platform%2Fcore%2Fml%2Fnnfw.git Pass initing weight and bias on compilation time if data is null (#2427) Fc's weight and bias can be passed on execution time not only model time. these generated tests can be fixed as workaround method. - fully_connected_quant8_weights_as_inputs - fully_connected_quant8_large_weights_as_inputs This should be fixed structurally on neuron runtime. Ref: https://github.sec.samsung.net/STAR/nnfw/issues/2319 Signed-off-by: Yongseop Kim --- diff --git a/runtimes/pure_arm_compute/src/compilation.cc b/runtimes/pure_arm_compute/src/compilation.cc index 3803d8f..02afc32 100644 --- a/runtimes/pure_arm_compute/src/compilation.cc +++ b/runtimes/pure_arm_compute/src/compilation.cc @@ -2002,6 +2002,8 @@ void Planner::visit(const ::internal::tflite::op::FullyConnected::Node &node) _ctx.at(bias_index).zeroPoint())); // Set initializer for weight + // Workaround for https://github.sec.samsung.net/STAR/nnfw/issues/2319 + if (_ctx.at(weight_index).hasData()) { auto weight_base = _ctx.at(weight_index).data().base(); auto weight_size = _ctx.at(weight_index).data().size(); @@ -2077,6 +2079,8 @@ void Planner::visit(const ::internal::tflite::op::FullyConnected::Node &node) } // Set initializer for bias + // Workaround for https://github.sec.samsung.net/STAR/nnfw/issues/2319 + if (_ctx.at(bias_index).hasData()) { auto bias_base = _ctx.at(bias_index).data().base(); auto bias_type = _ctx.at(bias_index).type();