Skip initialization for kernel and bias if their data is null. This
situation happens when kernel's value is set at execution time.
Signed-off-by: Yongseop Kim <yons.kim@samsung.com>
_ctx.at(bias_index).zeroPoint()));
// Set initializer for kernel
+ // Workaround for https://github.sec.samsung.net/STAR/nnfw/issues/2319
+ if (_ctx.at(ker_index).hasData())
{
auto ker_base = _ctx.at(ker_index).data().base();
auto ker_size = _ctx.at(ker_index).data().size();
}
// Set initializer for bias
+ // See above comment.
+ if (_ctx.at(bias_index).hasData())
{
auto bias_base = _ctx.at(bias_index).data().base();
auto bias_type = _ctx.at(bias_index).type();