Show / Hide Table of Contents

Class AveragePooling1D

Average pooling for temporal data.

Inheritance
System.Object
Keras
Base
BaseLayer
AveragePooling1D
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 AveragePooling1D : BaseLayer, IDisposable

Constructors

| Improve this Doc View Source

AveragePooling1D(Int32, Nullable<Int32>, String, String)

Initializes a new instance of the AveragePooling1D class.

Declaration
public AveragePooling1D(int pool_size = 2, int? strides = default(int? ), string padding = "valid", string data_format = "channels_last")
Parameters
Type Name Description
System.Int32 pool_size

Integer, size of the max pooling windows.

System.Nullable<System.Int32> strides

Integer, or None. Factor by which to downscale. E.g. 2 will halve the input. 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, steps, features) while channels_first corresponds to inputs with shape (batch, features, steps).

Implements

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