Welcome to our Support Center

SeparableConv2D

Description

Gets the weights of the SeparableConv2D layer selected by the index. Type : polymorphic.

 

Input parameters

 

 Model in : model architecture.
 index : integerindex of layer.

 

Output parameters

 

 Model out : model architecture.

 weights_info : cluster

 index : integer, index of layer.
 name : string, name of layer.
 weights : cluster

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].

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