Skip to content

Commit

Permalink
[luci-interpreter] Tidy duplicate check (Samsung#13419)
Browse files Browse the repository at this point in the history
This will tidy duplicate check in FullyConnected::configure().

ONE-DCO-1.0-Signed-off-by: SaeHie Park <[email protected]>
  • Loading branch information
seanshpark authored Jul 15, 2024
1 parent ecdac7e commit 8e15af3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compiler/luci-interpreter/src/kernels/FullyConnected.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ void FullyConnected::configure()
const int32_t batch_size = input_shape.num_elements() / weights_shape.dim(1);
const int32_t num_units = weights_shape.dim(0);

if (bias())
LUCI_INTERPRETER_CHECK(bias()->shape().num_elements() == weights()->shape().dim(0));

if (params().keep_num_dims == false)
{
output()->resize({batch_size, num_units});
Expand Down

0 comments on commit 8e15af3

Please sign in to comment.