Keraflow
Deep Learning for Python.
 All Classes Namespaces Functions Pages
keraflow.layers.convolution.ZeroPadding2D Class Reference

Zero-padding layer for (input_depth, input_row, input_col) inputs. More...

Inheritance diagram for keraflow.layers.convolution.ZeroPadding2D:
keraflow.layers.convolution.ZeroPaddingBase

Public Member Functions

def __init__
 

Detailed Description

Zero-padding layer for (input_depth, input_row, input_col) inputs.

  • input_shape: 4D, (nb_samples, input_depth, input_row, input_col)
  • output_shape: 4D, (nb_samples, input_depth, input_row+2*pad[0], input_col+2*pad[1])

Constructor & Destructor Documentation

def keraflow.layers.convolution.ZeroPadding2D.__init__ (   self,
  pad = (1,1,
  kwargs 
)
Parameters
padtuple. Number of zeros to pad at each dimension. For example (2, (1,3)) will pad 2 zeros at the beginning and the end of the first dimension, and pad 1 zero at the beginning and 3 zeros at the end of the second dimension.
kwargssee Layer.__init__.