rztdl.dl.components.layers.pool package

Submodules

rztdl.dl.components.layers.pool.avg_pool1d module

@created on: 2020-01-07,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.avg_pool1d.AvgPool1D(name: str, pool_size: int = 2, strides: int = 2, padding: rztdl.dl.constants.string_constants.Padding = <Padding.VALID: 'VALID'>, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.AveragePooling1D, rztdl.dl.components.layers.layer.Layer

Avg Pool 1D

Parameters:
  • name (str) – component name
  • pool_size (int) – Integer, size of the avg pooling windows
  • strides (int) – Integer, Factor by which to downscale
  • padding (Padding) – Padding.VALID/ Padding.SAME
  • data_format (DataFormat) – The ordering of the dimensions in the inputs. “CHANNELS_LAST” : (batch, steps, features) “CHANNELS_FIRST” :(batch, features, steps)
  • inputs (Union[str, Tensor, None]) – Input Tensor
  • outputs (Optional[str]) – Output Tensor
create(inputs)[source]
parameter_validation(strides, pool_size, padding)[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.avg_pool2d module

@created on: 2020-01-07,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.avg_pool2d.AvgPool2D(name: str, pool_size: typing.Union[int, typing.List[int]] = (2, 2), strides: typing.Union[int, typing.List[int]] = (2, 2), padding: rztdl.dl.constants.string_constants.Padding = <Padding.VALID: 'VALID'>, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.AveragePooling2D, rztdl.dl.components.layers.layer.Layer

Avg pool 2D

Parameters:
  • name (str) – component name
  • pool_size (Union[int, List[int]]) – integer or tuple of 2 integers, factors by which to downscale
  • strides (Union[int, List[int]]) – Integer, tuple of 2 integers, or None. Strides values. If None, it will default to pool_size
  • padding (Padding) – “VALID” or “SAME”
  • data_format (DataFormat) – ordering of the dimensions in the inputs. “channels_last”: (batch, height, width, channels) “channels_first”: (batch, channels, height, width)
  • inputs (Union[str, Tensor, None]) – Input tensor
  • outputs (Optional[str]) – Output tensor
create(inputs)[source]
parameter_validation(strides, pool_size, padding)[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.avg_pool3d module

@created on: 2020-01-29,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.avg_pool3d.AvgPool3D(name: str, pool_size: typing.Union[int, typing.List[int]] = (2, 2, 2), strides: typing.Union[int, typing.List[int]] = (1, 1, 1), padding: rztdl.dl.constants.string_constants.Padding = <Padding.VALID: 'VALID'>, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.AveragePooling3D, rztdl.dl.components.layers.layer.Layer

Average pooling operation for 3D data (spatial or spatio-temporal)

Parameters:
  • name (str) – Name of the component
  • pool_size (Union[int, List[int]]) – Integer or tuple of 3 integers, factors by which to downscale
  • strides (Union[int, List[int]]) – Integer, tuple of 3 integers, or None. Strides values. If None, it will default to pool_size
  • padding (Padding) – “VALID” or “SAME”
  • data_format (DataFormat) – ordering of the dimensions in the inputs. “channels_last”: (batch, height, width, channels) (default) “channels_first”: (batch, channels, height, width)
  • inputs (Union[str, Tensor, None]) – Input Tensor/Component
  • outputs (Optional[str]) – Output Tensor/Component
create(inputs)[source]
parameter_validation(strides, pool_size, padding)[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.global_avg_pool1d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.global_avg_pool1d.GlobalAvgPool1D(name: str, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.GlobalAveragePooling1D, rztdl.dl.components.layers.layer.Layer

Global average pooling operation for temporal data.

Parameters:
  • name (str) – Component Name
  • data_format (DataFormat) – The ordering of the dimensions in the inputs. “CHANNELS_LAST” : (batch, steps, features) “CHANNELS_FIRST” :(batch, features, steps)
  • inputs (Union[str, Tensor, None]) – Input tensor/ input name
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation()[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.global_avg_pool2d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.global_avg_pool2d.GlobalAvgPool2D(name: str, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.GlobalAveragePooling2D, rztdl.dl.components.layers.layer.Layer

Global avg pooling operation for spatial data

Parameters:
  • name (str) – Component Name
  • data_format (DataFormat) – ordering of the dimensions in the inputs. “channels_last”: (batch, height, width, channels) (default) “channels_first”: (batch, channels, height, width)
  • inputs (Union[str, Tensor, None]) – Input tensor/ input name
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation()[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.global_avg_pool3d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.global_avg_pool3d.GlobalAvgPool3D(name: str, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.GlobalAveragePooling3D, rztdl.dl.components.layers.layer.Layer

Global Average pooling operation for 3D data.

Parameters:
  • name (str) – Component Name
  • data_format (DataFormat) – ordering of the dimensions in the inputs. “channels_last”: (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels) “channels_first”: (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)
  • inputs (Union[str, Tensor, None]) – Input tensor/ input name
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation()[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.global_max_pool1d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.global_max_pool1d.GlobalMaxPool1D(name: str, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.GlobalMaxPooling1D, rztdl.dl.components.layers.layer.Layer

Global max pooling operation for temporal data.

Parameters:
  • name (str) – Component Name
  • data_format (DataFormat) – The ordering of the dimensions in the inputs. “CHANNELS_LAST” : (batch, steps, features) “CHANNELS_FIRST” :(batch, features, steps)
  • inputs (Union[str, Tensor, None]) – Input tensor/ input name
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation()[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.global_max_pool2d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.global_max_pool2d.GlobalMaxPool2D(name: str, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.GlobalMaxPooling2D, rztdl.dl.components.layers.layer.Layer

Global max pooling operation for spatial data

Parameters:
  • name (str) – Component Name
  • data_format (DataFormat) – ordering of the dimensions in the inputs. “channels_last”: (batch, height, width, channels) (default) “channels_first”: (batch, channels, height, width)
  • inputs (Union[str, Tensor, None]) – Input tensor/ input name
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation()[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.global_max_pool3d module

@created on: 2020-01-30,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.global_max_pool3d.GlobalMaxPool3D(name: str, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.GlobalMaxPooling3D, rztdl.dl.components.layers.layer.Layer

Global Max pooling operation for 3D data

Parameters:
  • name (str) – Component Name
  • data_format (DataFormat) – ordering of the dimensions in the inputs. “channels_last”: (batch, spatial_dim1, spatial_dim2, spatial_dim3, channels) “channels_first”: (batch, channels, spatial_dim1, spatial_dim2, spatial_dim3)
  • inputs (Union[str, Tensor, None]) – Input tensor/ input name
  • outputs (Optional[str]) – Output name
create(inputs)[source]
parameter_validation()[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.max_pool1d module

@created on: 2020-01-07,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.max_pool1d.MaxPool1D(name: str, pool_size: int = 2, strides: int = 2, padding: rztdl.dl.constants.string_constants.Padding = <Padding.VALID: 'VALID'>, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.MaxPooling1D, rztdl.dl.components.layers.layer.Layer

Max Pool 1D

Parameters:
  • name (str) – component name
  • pool_size (int) – Integer, size of the max pooling windows
  • strides (int) – Integer, Factor by which to downscale
  • padding (Padding) – Padding.VALID/ Padding.SAME
  • data_format (DataFormat) – The ordering of the dimensions in the inputs. “CHANNELS_LAST” : (batch, steps, features) “CHANNELS_FIRST” :(batch, features, steps)
  • inputs (Union[str, Tensor, None]) – Input Tensor
  • outputs (Optional[str]) – Output Tensor
create(inputs)[source]
parameter_validation(strides, pool_size, padding)[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.max_pool2d module

@created on: 12/30/19, @author: Shubham, @version: v0.0.1

Description:

Sphinx Documentation Status:

class rztdl.dl.components.layers.pool.max_pool2d.MaxPool2D(name: str, pool_size: typing.Union[int, typing.List[int]] = (2, 2), strides: typing.Union[int, typing.List[int]] = (2, 2), padding: rztdl.dl.constants.string_constants.Padding = <Padding.VALID: 'VALID'>, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.MaxPooling2D, rztdl.dl.components.layers.layer.Layer

Max Pool 2D

Parameters:
  • name (str) – component name
  • pool_size (Union[int, List[int]]) – integer or tuple of 2 integers, factors by which to downscale
  • strides (Union[int, List[int]]) – Integer, tuple of 2 integers, or None. Strides values. If None, it will default to pool_size
  • padding (Padding) – “VALID” or “SAME”
  • data_format (DataFormat) – ordering of the dimensions in the inputs. “CHANNELS_LAST”: (batch, height, width, channels) (default) “CHANNELS_FIRST”: (batch, channels, height, width)
  • inputs (Union[str, Tensor, None]) – Input tensor
  • outputs (Optional[str]) – Output tensor
create(inputs)[source]
parameter_validation(strides, pool_size, padding)[source]
validate(inputs)[source]

rztdl.dl.components.layers.pool.max_pool3d module

@created on: 2020-01-29,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.layers.pool.max_pool3d.MaxPool3D(name: str, pool_size: typing.Union[int, typing.List[int]] = (2, 2, 2), strides: typing.Union[int, typing.List[int]] = (1, 1, 1), padding: rztdl.dl.constants.string_constants.Padding = <Padding.VALID: 'VALID'>, data_format: rztdl.dl.constants.string_constants.DataFormat = <DataFormat.CHANNELS_LAST: 'CHANNELS_LAST'>, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.pooling.MaxPooling3D, rztdl.dl.components.layers.layer.Layer

Max pooling operation for 3D data (spatial or spatio-temporal)

Parameters:
  • name (str) – Name of the component
  • pool_size (Union[int, List[int]]) – Integer or tuple of 3 integers, factors by which to downscale
  • strides (Union[int, List[int]]) – Integer, tuple of 3 integers, or None. Strides values. If None, it will default to pool_size
  • padding (Padding) – “VALID” or “SAME”
  • data_format (DataFormat) – ordering of the dimensions in the inputs. “channels_last”: (batch, height, width, channels) (default) “channels_first”: (batch, channels, height, width)
  • inputs (Union[str, Tensor, None]) – Input Tensor/Component
  • outputs (Optional[str]) – Output Tensor/Component
create(inputs)[source]
parameter_validation(strides, pool_size, padding)[source]
validate(inputs)[source]

Module contents