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 <yons.kim@samsung.com>
_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();
}
// 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();