mltk.core.TflitePoolParams

class TflitePoolParams[source]

Calculated Pooling Parameters

Properties

quantized_activation_max

Fused activation max value

quantized_activation_min

Fused activation min value

stride_height

Kernel height

stride_width

Kernel width

padding

Kernel padding

Methods

__init__

calculate

Calculate the parameters for the given layer

__init__(padding=<factory>, stride_width=0, stride_height=0, quantized_activation_min=0, quantized_activation_max=0)
Parameters:
  • padding (TflitePadding) –

  • stride_width (int) –

  • stride_height (int) –

  • quantized_activation_min (int) –

  • quantized_activation_max (int) –

Return type:

None

padding: TflitePadding

Kernel padding

stride_width: int = 0

Kernel width

stride_height: int = 0

Kernel height

quantized_activation_min: int = 0

Fused activation min value

quantized_activation_max: int = 0

Fused activation max value

static calculate(layer)[source]

Calculate the parameters for the given layer

Return type:

TflitePoolParams