Class/Object

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

ConvLSTM2D

Related Docs: object ConvLSTM2D | package layers

Permalink

class ConvLSTM2D[T] extends Recurrent[T] with Net

Convolutional LSTM. Note that currently only 'same' padding is supported. The convolution kernel for this layer is a square kernel with equal strides. The input of this layer should be 5D, i.e. (samples, time, channels, rows, cols), and 'CHANNEL_FIRST' (dimOrdering='th') is expected.

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

T

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

Linear Supertypes
Net, Recurrent[T], bigdl.nn.keras.Recurrent[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. ConvLSTM2D
  2. Net
  3. Recurrent
  4. Recurrent
  5. KerasLayer
  6. Container
  7. AbstractModule
  8. InferShape
  9. Serializable
  10. Serializable
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ConvLSTM2D(outputDimension: Int, nbKernel: Int, activation: KerasLayer[Tensor[T], Tensor[T], T] = null, innerActivation: KerasLayer[Tensor[T], Tensor[T], T] = null, dimOrdering: String = "CHANNEL_FIRST", subsample: Int = 1, borderMode: String = "valid", wRegularizer: Regularizer[T] = null, uRegularizer: Regularizer[T] = null, bRegularizer: Regularizer[T] = null, returnSeq: Boolean = false, goBackward: Boolean = false, mInputShape: Shape = null)(implicit arg0: ClassTag[T], ev: TensorNumeric[T])

    Permalink

    outputDimension

    Number of convolution filters to use.

    nbKernel

    Number of rows/columns in the convolution kernel. Square kernel.

    activation

    Activation function to use. You can also pass in corresponding string representations such as 'relu' or 'sigmoid', etc. for simple activations in the factory method. Default is 'tanh'.

    innerActivation

    Activation function for inner cells. You can also pass in corresponding string representations such as 'relu' or 'sigmoid', etc. for simple activations in the factory method. Default is 'hard_sigmoid'.

    dimOrdering

    Format of input data. Please use "CHANNEL_FIRST" (dimOrdering='th').

    subsample

    Factor by which to subsample output. Also called strides elsewhere. Default is 1.

    borderMode

    One of "same" or "valid". Also called padding elsewhere. Default is "valid".

    wRegularizer

    An instance of Regularizer, (eg. L1 or L2 regularization), applied to the input weights matrices. Default is null.

    uRegularizer

    An instance of Regularizer, (eg. L1 or L2 regularization), applied to the recurrent weights matrices. Default is null.

    bRegularizer

    An instance of Regularizer, applied to the bias. Default is null.

    returnSeq

    Whether to return the full sequence or the last output in the output sequence. Default is false.

    goBackward

    Whether the input sequence will be processed backwards. Default is false.

    mInputShape

    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. val activation: KerasLayer[Tensor[T], Tensor[T], T]

    Permalink

    Activation function to use.

    Activation function to use. You can also pass in corresponding string representations such as 'relu' or 'sigmoid', etc. for simple activations in the factory method. Default is 'tanh'.

  6. def apply(name: String): Option[AbstractModule[Activity, Activity, T]]

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

    Permalink
    Definition Classes
    Any
  8. var bRegularizer: Regularizer[T]

    Permalink

    An instance of Regularizer, applied to the bias.

    An instance of Regularizer, applied to the bias. Default is null.

  9. def backward(input: Tensor[T], gradOutput: Tensor[T]): Tensor[T]

    Permalink
    Definition Classes
    AbstractModule
  10. var backwardTime: Long

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

    Permalink

    One of "same" or "valid".

    One of "same" or "valid". Also called padding elsewhere. Default is "valid".

  12. def build(calcInputShape: Shape): Shape

    Permalink
    Definition Classes
    KerasLayer → InferShape
  13. def buildCell(input: Array[Int]): Cell[T]

    Permalink
    Definition Classes
    ConvLSTM2D → Recurrent
  14. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Container → AbstractModule
  15. final def checkEngineType(): ConvLSTM2D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  16. def clearState(): ConvLSTM2D.this.type

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def cloneModule(): ConvLSTM2D.this.type

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

    Permalink
    Definition Classes
    ConvLSTM2D → Recurrent → KerasLayer → InferShape
  21. val dimOrdering: String

    Permalink

    Format of input data.

    Format of input data. Please use "CHANNEL_FIRST" (dimOrdering='th').

  22. def doBuild(inputShape: Shape): AbstractModule[Tensor[T], Tensor[T], T]

    Permalink
    Definition Classes
    Recurrent → Recurrent → KerasLayer
  23. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  27. final def evaluate(dataset: RDD[MiniBatch[T]], vMethods: Array[_ <: ValidationMethod[T]]): Array[(ValidationResult, ValidationMethod[T])]

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

    Permalink
    Definition Classes
    AbstractModule
  29. final def evaluateImage(imageFrame: ImageFrame, vMethods: Array[_ <: ValidationMethod[T]], batchSize: Option[Int]): Array[(ValidationResult, ValidationMethod[T])]

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  33. var forwardTime: Long

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

    Permalink
    Definition Classes
    Container → AbstractModule
  35. def from[T](vars: Variable[T]*)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): Variable[T]

    Permalink

    Build graph: some other modules point to current module

    Build graph: some other modules point to current module

    vars

    upstream variables

    returns

    Variable containing current module

    Definition Classes
    Net
  36. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Container → AbstractModule
  38. def getGradHiddenState(): Activity

    Permalink
    Definition Classes
    Recurrent
  39. def getHiddenShape(): Array[Int]

    Permalink
    Definition Classes
    Recurrent
  40. def getHiddenState(): Activity

    Permalink
    Definition Classes
    Recurrent
  41. final def getInputShape(): Shape

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    Container → AbstractModule
  50. final def getTimesGroupByModuleType(): Array[(String, Long, Long)]

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

    Permalink
    Definition Classes
    AbstractModule
  52. var goBackward: Boolean

    Permalink

    Whether the input sequence will be processed backwards.

    Whether the input sequence will be processed backwards. Default is false.

  53. val goBackwards: Boolean

    Permalink
    Definition Classes
    Recurrent → Recurrent
  54. var gradInput: Tensor[T]

    Permalink
    Definition Classes
    AbstractModule
  55. final def hasName: Boolean

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

    Permalink
    Definition Classes
    Container → AbstractModule → AnyRef → Any
  57. val innerActivation: KerasLayer[Tensor[T], Tensor[T], T]

    Permalink

    Activation function for inner cells.

    Activation function for inner cells. You can also pass in corresponding string representations such as 'relu' or 'sigmoid', etc. for simple activations in the factory method. Default is 'hard_sigmoid'.

  58. val inputShape: Shape

    Permalink
    Definition Classes
    Recurrent → Recurrent
  59. def inputs(first: (ModuleNode[T], Int), nodesWithIndex: (ModuleNode[T], Int)*): ModuleNode[T]

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    KerasLayer
  69. var line: String

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

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

    Permalink
    Definition Classes
    AbstractModule
  72. var mInputShape: Shape

    Permalink

    A Single Shape, does not include the batch dimension.

  73. val modules: ArrayBuffer[AbstractModule[Activity, Activity, T]]

    Permalink
    Definition Classes
    Container
  74. val nbKernel: Int

    Permalink

    Number of rows/columns in the convolution kernel.

    Number of rows/columns in the convolution kernel. Square kernel.

  75. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  79. val outputDim: Int

    Permalink
    Definition Classes
    Recurrent → Recurrent
  80. var outputDimension: Int

    Permalink

    Number of convolution filters to use.

  81. def parameters(): (Array[Tensor[T]], Array[Tensor[T]])

    Permalink
    Definition Classes
    Container → AbstractModule
  82. final def predict(dataset: RDD[Sample[T]], batchSize: Int, shareBuffer: Boolean): RDD[Activity]

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

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

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  88. val rec: InternalRecurrent[T]

    Permalink
    Definition Classes
    Recurrent
  89. def release(): Unit

    Permalink
    Definition Classes
    Container → AbstractModule
  90. def reset(): Unit

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

    Permalink
    Definition Classes
    Container → AbstractModule
  92. var returnSeq: Boolean

    Permalink

    Whether to return the full sequence or the last output in the output sequence.

    Whether to return the full sequence or the last output in the output sequence. Default is false.

  93. val returnSequences: Boolean

    Permalink
    Definition Classes
    Recurrent → Recurrent
  94. final def saveCaffe(prototxtPath: String, modelPath: String, useV2: Boolean, overwrite: Boolean): ConvLSTM2D.this.type

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

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

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  100. var scaleB: Double

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

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

    Permalink
    Definition Classes
    AbstractModule
  103. def setGradHiddenState(gradHiddenState: Activity): Unit

    Permalink
    Definition Classes
    Recurrent
  104. def setHiddenState(hiddenState: Activity): Unit

    Permalink
    Definition Classes
    Recurrent
  105. final def setLine(line: String): ConvLSTM2D.this.type

    Permalink
    Definition Classes
    AbstractModule
  106. final def setName(name: String): ConvLSTM2D.this.type

    Permalink
    Definition Classes
    AbstractModule
  107. def setScaleB(b: Double): ConvLSTM2D.this.type

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

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

    Permalink
    Definition Classes
    AbstractModule
  110. val subsample: Int

    Permalink

    Factor by which to subsample output.

    Factor by which to subsample output. Also called strides elsewhere. Default is 1.

  111. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  115. final def training(): ConvLSTM2D.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  116. var uRegularizer: Regularizer[T]

    Permalink

    An instance of Regularizer, (eg.

    An instance of Regularizer, (eg. L1 or L2 regularization), applied to the recurrent weights matrices. Default is null.

  117. def unFreeze(names: String*): ConvLSTM2D.this.type

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

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

    Permalink
    Definition Classes
    KerasLayer → AbstractModule
  120. var wRegularizer: Regularizer[T]

    Permalink

    An instance of Regularizer, (eg.

    An instance of Regularizer, (eg. L1 or L2 regularization), applied to the input weights matrices. Default is null.

  121. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    AbstractModule

Deprecated Value Members

  1. final def save(path: String, overWrite: Boolean): ConvLSTM2D.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 Recurrent[T]

Inherited from bigdl.nn.keras.Recurrent[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