layers3.avgpoolLayer¶
-
class
layers3.avgpoolLayer(size, stride, pad='SAME')¶ Basic average pooling layer
-
__init__(size, stride, pad='SAME')¶ Parameters: - size (int or list[int]) – Indicate the size of pooling kernel.
- stride (int or list[int]) – Stride number. Can be either integer or list of integers
- pad (String) – Padding method, must be one of ‘SAME’, ‘VALID’, ‘SAME_LEFT’. ‘VALID’ does not use auto-padding scheme. ‘SAME’ uses tensorflow-style auto-padding and ‘SAME_LEFT’ uses pytorch-style auto-padding.
-
call(x)¶ Parameters: x – Input tensor or numpy array. The object will be automatically converted to tensor if the input is np.array. Note that other arrays in args or kwargs will not be auto-converted.
-