Skip to main content
. 2025 Feb 21;25(5):1318. doi: 10.3390/s25051318
Algorithm 2 Pruning Process
  • 1:

    Input: Model weights W, pruning threshold τ

  • 2:

    for each layer in the model do

  • 3:

        for each weight w in the layer do

  • 4:

            if |w|<τ then

  • 5:

               Set w=0

  • 6:

            end if

  • 7:

        end for

  • 8:

    end for