Welcome to our Support Center

SeparableConv2D

Description

Adds the weights of the SeparableConv2D layer to the weights table. Type : polymorphic.

 

Input parameters

 

Weights in : array

Β index :Β integer,Β index of layer.
Β weights :Β variant,Β weights values.

Β index :Β integer,Β index of layer.
Β filters_depthwise :Β array,Β 4D values. filters_depthwise = [channels, 1, size[0], size[1]].
Β filters_pointwise :Β array,Β 4D values. filters_pointwise = [n_filters, channels, 1, 1].
Β biases :Β array,Β 1D values. biases = [n_filters].

Output parameters

 

Β Weights out : array

Β index :Β integer,Β index of layer.
Β weights :Β variant,Β weights values.

Dimension

  • filters_depthwise = [channels, 1, size[0], size[1]]

The size of filters_depthwise depends on the input of theΒ SeparableConv2DΒ layer and the parameters size.
For example if the input of the layer has a size of [batch_size = 10, channels = 5, rows = 2, cols = 2] and size the value [3, 3] then filters_depthwise will have a size of [channels = 5, 1, size[0] = 3, size[1] = 3].

 

  • filters_pointwise = [n_filters, channels, 1, 1]

The size of filters_pointwise depends on the input of theΒ SeparableConv2DΒ layer and the parameters n_filters.
For example if the input of the layer has a size of [batch_size = 10, channels = 5, rows = 2, cols = 2] and n_filters has the value 6 then filters_pointwise will have a size of [n_filters = 6, channels = 5, 1, 1].

 

  • biases = [n_filters]

Β The size of biases depends on the parameter n_filters of theΒ SeparableConv2DΒ layer.

Example

All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install HAIBAL library to run it).

Table of Contents
Index