Show / Hide Table of Contents

Class AveragePooling2D

Average pooling operation for spatial data.

Inheritance
System.Object
Keras
Base
BaseLayer
AveragePooling2D
Implements
System.IDisposable
Inherited Members
BaseLayer.Set(BaseLayer[])
Base.Parameters
Base.None
Base.Init()
Base.ToPython()
Base.InvokeStaticMethod(Object, String, Dictionary<String, Object>)
Base.InvokeMethod(String, Dictionary<String, Object>)
Base.Item[String]
Keras.Instance
Keras.keras
Keras.keras2onnx
Keras.tfjs
Keras.Dispose()
Keras.ToTuple(Array)
Keras.ToList(Array)
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Keras.Layers
Assembly: Keras.dll
Syntax
public class AveragePooling2D : BaseLayer, IDisposable

Constructors

| Improve this Doc View Source

AveragePooling2D(Tuple<Int32, Int32>, Tuple<Int32, Int32>, String, String)

Initializes a new instance of the AveragePooling2D class.

Declaration
public AveragePooling2D(Tuple<int, int> pool_size = null, Tuple<int, int> strides = null, string padding = "valid", string data_format = "channels_last")
Parameters
Type Name Description
System.Tuple<System.Int32, System.Int32> pool_size

integer or tuple of 2 integers, factors by which to downscale (vertical, horizontal). (2, 2) will halve the input in both spatial dimension. If only one integer is specified, the same window length will be used for both dimensions.

System.Tuple<System.Int32, System.Int32> strides

Integer, tuple of 2 integers, or None. Strides values. If None, it will default to pool_size.

System.String padding

One of "valid" or "same" (case-insensitive).

System.String data_format

A string, one of channels_last (default) or channels_first. The ordering of the dimensions in the inputs. channels_last corresponds to inputs with shape (batch, height, width, channels) while channels_first corresponds to inputs with shape (batch, channels, height, width). It defaults to the image_data_format value found in your Keras config file at ~/.keras/keras.json. If you never set it, then it will be "channels_last".

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX