Skip to content

Commit

Permalink
[onert] Fix the missed nullptr check (#11515)
Browse files Browse the repository at this point in the history
This commit fixes the missed nullptr check in train::FullConnectedLayer

ONE-DCO-1.0-Signed-off-by: ragmani <[email protected]>
  • Loading branch information
ragmani authored Sep 11, 2023
1 parent e2a84ef commit e13bdc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/onert/backend/train/ops/FullyConnectedLayer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void FullyConnectedLayer::backward()
case OperandType::FLOAT32:
{
assert(data_type == _grad_weights->data_type());
assert(data_type == _grad_bias->data_type());
assert(_grad_bias == nullptr || data_type == _grad_bias->data_type());
backwardFloat32();
break;
}
Expand Down

0 comments on commit e13bdc6

Please sign in to comment.