dlpy.blocks.ResBlockBN

class dlpy.blocks.ResBlockBN(kernel_sizes=3, n_filters=(16, 16), strides=None, batch_norm_first=True)

Bases: dlpy.blocks.ResBlock

Residual block for Residual Network with batch normalization.

Parameters:
kernel_sizes : iter-of-ints, optional

Kernel size of the convolution filters.
Default: 3

n_filters : iter-of-ints, optional

List of numbers of filter in each convolution layers.
Default: (16, 16)

strides : iter-of-ints, optional

List of stride in each convolution layers.

batch_norm_first : bool, optional

Specify whether to add batch normal layer before conv layer.
Default: True

Returns:
ResBlockBN
__init__(kernel_sizes=3, n_filters=(16, 16), strides=None, batch_norm_first=True)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([kernel_sizes, n_filters, strides, …]) Initialize self.
add_layers() Add the layers for the block
compile(src_layer[, block_num]) Convert the block structure into DLPy layer definitions.
count_instances()
get_number_of_instances()