Class/Object

com.intel.analytics.zoo.pipeline.api.keras.layers

AveragePooling1D

Related Docs: object AveragePooling1D | package layers

Permalink

class AveragePooling1D[T] extends Pooling1D[T] with Net

Applies average pooling operation for temporal data. The input of this layer should be 3D.

When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).

T

Numeric type of parameter(e.g. weight, bias). Only support float/double now.

Linear Supertypes
Net, Pooling1D[T], KerasLayer[Tensor[T], Tensor[T], T], Container[Tensor[T], Tensor[T], T], AbstractModule[Tensor[T], Tensor[T], T], InferShape, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AveragePooling1D
  2. Net
  3. Pooling1D
  4. KerasLayer
  5. Container
  6. AbstractModule
  7. InferShape
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AveragePooling1D(poolLength: Int = 2, stride: Int = 1, borderMode: String = "valid", inputShape: Shape = null)(implicit arg0: ClassTag[T], ev: TensorNumeric[T])

    Permalink

    poolLength

    Size of the region to which average pooling is applied. Integer. Default is 2.

    stride

    Factor by which to downscale. Positive integer, or -1. 2 will halve the input. If -1, it will default to poolLength. Default is -1, and in this case it will be equal to poolSize.

    borderMode

    Either 'valid' or 'same'. Default is 'valid'.

    inputShape

    A Single Shape, does not include the batch dimension.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accGradParameters(input: Tensor[T], gradOutput: Tensor[T]): Unit

    Permalink
    Definition Classes
    KerasLayer → AbstractModule
  5. def apply(name: String): Option[AbstractModule[Activity, Activity, T]]

    Permalink
    Definition Classes
    Container → AbstractModule
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def backward(input: Tensor[T], gradOutput: Tensor[T]): Tensor[T]

    Permalink
    Definition Classes
    AbstractModule
  8. var backwardTime: Long

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  9. val borderMode: String

    Permalink

    Either 'valid' or 'same'.

    Either 'valid' or 'same'. Default is 'valid'.

    Definition Classes
    AveragePooling1D → Pooling1D
  10. def build(calcInputShape: Shape): Shape

    Permalink
    Definition Classes
    KerasLayer → InferShape
  11. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Container → AbstractModule
  12. final def checkEngineType(): AveragePooling1D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  13. def clearState(): AveragePooling1D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  14. final def clone(deepCopy: Boolean): AbstractModule[Tensor[T], Tensor[T], T]

    Permalink
    Definition Classes
    AbstractModule
  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. final def cloneModule(): AbstractModule[Tensor[T], Tensor[T], T]

    Permalink
    Definition Classes
    AbstractModule
  17. def computeOutputShape(inputShape: Shape): Shape

    Permalink
    Definition Classes
    Pooling1D → KerasLayer → InferShape
  18. def doBuild(inputShape: Shape): AbstractModule[Tensor[T], Tensor[T], T]

    Permalink
    Definition Classes
    AveragePooling1D → KerasLayer
  19. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    Container → AbstractModule → AnyRef → Any
  21. final def evaluate(): AveragePooling1D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  22. final def evaluate(dataSet: LocalDataSet[MiniBatch[T]], vMethods: Array[_ <: ValidationMethod[T]]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
    Definition Classes
    AbstractModule
  23. final def evaluate(dataset: RDD[Sample[T]], vMethods: Array[_ <: ValidationMethod[T]], batchSize: Option[Int]): Array[(ValidationResult, ValidationMethod[T])]

    Permalink
    Definition Classes
    AbstractModule
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. def findModules(moduleType: String): ArrayBuffer[AbstractModule[_, _, T]]

    Permalink
    Definition Classes
    Container
  26. final def forward(input: Tensor[T]): Tensor[T]

    Permalink
    Definition Classes
    AbstractModule
  27. var forwardTime: Long

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  28. def freeze(names: String*): AveragePooling1D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  29. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  30. def getExtraParameter(): Array[Tensor[T]]

    Permalink
    Definition Classes
    Container → AbstractModule
  31. final def getInputShape(): Shape

    Permalink
    Definition Classes
    InferShape
  32. final def getName(): String

    Permalink
    Definition Classes
    AbstractModule
  33. final def getNumericType(): TensorDataType

    Permalink
    Definition Classes
    AbstractModule
  34. final def getOutputShape(): Shape

    Permalink
    Definition Classes
    InferShape
  35. def getParametersTable(): Table

    Permalink
    Definition Classes
    Container → AbstractModule
  36. final def getPrintName(): String

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  37. final def getScaleB(): Double

    Permalink
    Definition Classes
    AbstractModule
  38. final def getScaleW(): Double

    Permalink
    Definition Classes
    AbstractModule
  39. def getTimes(): Array[(AbstractModule[_ <: Activity, _ <: Activity, T], Long, Long)]

    Permalink
    Definition Classes
    Container → AbstractModule
  40. final def getWeightsBias(): Array[Tensor[T]]

    Permalink
    Definition Classes
    AbstractModule
  41. var gradInput: Tensor[T]

    Permalink
    Definition Classes
    AbstractModule
  42. final def hasName: Boolean

    Permalink
    Definition Classes
    AbstractModule
  43. def hashCode(): Int

    Permalink
    Definition Classes
    Container → AbstractModule → AnyRef → Any
  44. val inputShape: Shape

    Permalink

    A Single Shape, does not include the batch dimension.

    A Single Shape, does not include the batch dimension.

    Definition Classes
    AveragePooling1D → Pooling1D
  45. def inputs(first: (ModuleNode[T], Int), nodesWithIndex: (ModuleNode[T], Int)*): ModuleNode[T]

    Permalink
    Definition Classes
    KerasLayer → AbstractModule
  46. def inputs(nodes: Array[ModuleNode[T]]): ModuleNode[T]

    Permalink
    Definition Classes
    KerasLayer → AbstractModule
  47. def inputs(nodes: ModuleNode[T]*): ModuleNode[T]

    Permalink
    Definition Classes
    KerasLayer → AbstractModule
  48. def isBuilt(): Boolean

    Permalink
    Definition Classes
    KerasLayer → InferShape
  49. def isFrozen[T]()(implicit arg0: ClassTag[T]): Boolean

    Permalink
    Definition Classes
    Net
  50. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  51. def isKerasStyle(): Boolean

    Permalink
    Definition Classes
    KerasLayer → InferShape
  52. final def isTraining(): Boolean

    Permalink
    Definition Classes
    AbstractModule
  53. def labor: AbstractModule[Tensor[T], Tensor[T], T]

    Permalink
    Definition Classes
    KerasLayer
  54. def labor_=(value: AbstractModule[Tensor[T], Tensor[T], T]): Unit

    Permalink
    Definition Classes
    KerasLayer
  55. var line: String

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  56. final def loadModelWeights(srcModel: Module[Float], matchAll: Boolean): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  57. final def loadWeights(weightPath: String, matchAll: Boolean): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  58. val modules: ArrayBuffer[AbstractModule[Activity, Activity, T]]

    Permalink
    Definition Classes
    Container
  59. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  60. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  61. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. var output: Tensor[T]

    Permalink
    Definition Classes
    AbstractModule
  63. def parameters(): (Array[Tensor[T]], Array[Tensor[T]])

    Permalink
    Definition Classes
    Container → AbstractModule
  64. val poolLength: Int

    Permalink

    Size of the region to which average pooling is applied.

    Size of the region to which average pooling is applied. Integer. Default is 2.

    Definition Classes
    AveragePooling1D → Pooling1D
  65. final def predict(dataset: RDD[Sample[T]], batchSize: Int, shareBuffer: Boolean): RDD[Activity]

    Permalink
    Definition Classes
    AbstractModule
  66. final def predictClass(dataset: RDD[Sample[T]], batchSize: Int): RDD[Int]

    Permalink
    Definition Classes
    AbstractModule
  67. final def predictImage(imageFrame: ImageFrame, outputLayer: String, shareBuffer: Boolean, batchPerPartition: Int, predictKey: String, featurePaddingParam: Option[PaddingParam[T]]): ImageFrame

    Permalink
    Definition Classes
    AbstractModule
  68. def processInputs(first: (ModuleNode[T], Int), nodesWithIndex: (ModuleNode[T], Int)*): ModuleNode[T]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  69. def processInputs(nodes: Seq[ModuleNode[T]]): ModuleNode[T]

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  70. final def quantize(): Module[T]

    Permalink
    Definition Classes
    AbstractModule
  71. def reset(): Unit

    Permalink
    Definition Classes
    Container → AbstractModule
  72. def resetTimes(): Unit

    Permalink
    Definition Classes
    Container → AbstractModule
  73. final def saveCaffe(prototxtPath: String, modelPath: String, useV2: Boolean, overwrite: Boolean): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  74. final def saveDefinition(path: String, overWrite: Boolean): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  75. final def saveModule(path: String, weightPath: String, overWrite: Boolean): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  76. final def saveTF(inputs: Seq[(String, Seq[Int])], path: String, byteOrder: ByteOrder, dataFormat: TensorflowDataFormat): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  77. final def saveTorch(path: String, overWrite: Boolean): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  78. final def saveWeights(path: String, overWrite: Boolean): Unit

    Permalink
    Definition Classes
    AbstractModule
  79. var scaleB: Double

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  80. var scaleW: Double

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  81. final def setExtraParameter(extraParam: Array[Tensor[T]]): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  82. final def setLine(line: String): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  83. final def setName(name: String): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  84. def setScaleB(b: Double): AveragePooling1D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  85. def setScaleW(w: Double): AveragePooling1D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  86. final def setWeightsBias(newWeights: Array[Tensor[T]]): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
  87. val stride: Int

    Permalink

    Factor by which to downscale.

    Factor by which to downscale. Positive integer, or -1. 2 will halve the input. If -1, it will default to poolLength. Default is -1, and in this case it will be equal to poolSize.

    Definition Classes
    AveragePooling1D → Pooling1D
  88. val strideValue: Int

    Permalink
    Definition Classes
    Pooling1D
  89. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  90. def toGraph(startNodes: ModuleNode[T]*): Graph[T]

    Permalink
    Definition Classes
    AbstractModule
  91. def toString(): String

    Permalink
    Definition Classes
    AbstractModule → AnyRef → Any
  92. var train: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  93. final def training(): AveragePooling1D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  94. def unFreeze(names: String*): AveragePooling1D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  95. def updateGradInput(input: Tensor[T], gradOutput: Tensor[T]): Tensor[T]

    Permalink
    Definition Classes
    KerasLayer → AbstractModule
  96. def updateOutput(input: Tensor[T]): Tensor[T]

    Permalink
    Definition Classes
    KerasLayer → AbstractModule
  97. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  98. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  99. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  100. final def zeroGradParameters(): Unit

    Permalink
    Definition Classes
    AbstractModule

Deprecated Value Members

  1. final def save(path: String, overWrite: Boolean): AveragePooling1D.this.type

    Permalink
    Definition Classes
    AbstractModule
    Annotations
    @deprecated
    Deprecated

    (Since version 0.3.0) please use recommended saveModule(path, overWrite)

Inherited from Net

Inherited from Pooling1D[T]

Inherited from KerasLayer[Tensor[T], Tensor[T], T]

Inherited from Container[Tensor[T], Tensor[T], T]

Inherited from AbstractModule[Tensor[T], Tensor[T], T]

Inherited from InferShape

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped