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

ResizeBilinear

class ResizeBilinear[T] extends LayerWrapperByForward[T]

Resize the input image with bilinear interpolation. The input image must be a float tensor with NHWC or NCHW layout.

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).

Remark: This layer is from Torch and wrapped in Keras style.

T

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

Linear Supertypes
LayerWrapperByForward[T], Net, KerasLayer[Activity, Activity, T], Container[Activity, Activity, T], AbstractModule[Activity, Activity, T], InferShape, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ResizeBilinear
  2. LayerWrapperByForward
  3. Net
  4. KerasLayer
  5. Container
  6. AbstractModule
  7. InferShape
  8. Serializable
  9. Serializable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ResizeBilinear(outputHeight: Int, outputWidth: Int, alignCorners: Boolean, dimOrdering: DataFormat = ..., inputShape: Shape = null)(implicit arg0: ClassTag[T], ev: TensorNumeric[T])

    outputHeight

    output height

    outputWidth

    output width

    alignCorners

    align corner or not

    dimOrdering

    Format of input data. Either DataFormat.NCHW (dimOrdering='th') or DataFormat.NHWC (dimOrdering='tf'). Default is NCHW.

    inputShape

    A Single Shape, does not include the batch dimension.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def accGradParameters(input: Activity, gradOutput: Activity): Unit

    Definition Classes
    KerasLayer → AbstractModule
  7. val alignCorners: Boolean

    align corner or not

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

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

    Definition Classes
    Any
  10. def backward(input: Activity, gradOutput: Activity): Activity

    Definition Classes
    AbstractModule
  11. var backwardTime: Long

    Attributes
    protected
    Definition Classes
    AbstractModule
  12. val batchInputShape: Shape

    Definition Classes
    LayerWrapperByForward
  13. def build(calcInputShape: Shape): Shape

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

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

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

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

    Definition Classes
    AbstractModule
  18. def clone(): AnyRef

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

    Definition Classes
    AbstractModule
  20. def computeOutputShape(calcInputShape: Shape): Shape

    Definition Classes
    LayerWrapperByForward → KerasLayer → InferShape
  21. val dimOrdering: DataFormat

    Format of input data.

    Format of input data. Either DataFormat.NCHW (dimOrdering='th') or DataFormat.NHWC (dimOrdering='tf'). Default is NCHW.

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

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

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

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

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

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

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

    Definition Classes
    AbstractModule
  29. def finalize(): Unit

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

    Definition Classes
    Container
  31. final def forward(input: Activity): Activity

    Definition Classes
    AbstractModule
  32. var forwardTime: Long

    Attributes
    protected
    Definition Classes
    AbstractModule
  33. def freeze(names: String*): ResizeBilinear.this.type

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

    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
  35. final def getClass(): Class[_]

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

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

    Definition Classes
    InferShape
  38. final def getName(): String

    Definition Classes
    AbstractModule
  39. final def getNumericType(): TensorDataType

    Definition Classes
    AbstractModule
  40. final def getOutputShape(): Shape

    Definition Classes
    InferShape
  41. def getParametersTable(): Table

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

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

    Definition Classes
    AbstractModule
  44. final def getScaleW(): Double

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

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

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

    Definition Classes
    AbstractModule
  48. var gradInput: Activity

    Definition Classes
    AbstractModule
  49. final def hasName: Boolean

    Definition Classes
    AbstractModule
  50. def hashCode(): Int

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

    A Single Shape, does not include the batch dimension.

  52. def inputs(first: (ModuleNode[T], Int), nodesWithIndex: (ModuleNode[T], Int)*): ModuleNode[T]

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

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

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

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

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

    Definition Classes
    Any
  58. def isKerasStyle(): Boolean

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

    Definition Classes
    AbstractModule
  60. def labor: AbstractModule[Activity, Activity, T]

    Definition Classes
    KerasLayer
  61. def labor_=(value: AbstractModule[Activity, Activity, T]): Unit

    Definition Classes
    KerasLayer
  62. var line: String

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

    Definition Classes
    AbstractModule
  64. final def loadWeights(weightPath: String, matchAll: Boolean): ResizeBilinear.this.type

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

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

    Definition Classes
    AnyRef
  67. final def notify(): Unit

    Definition Classes
    AnyRef
  68. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  69. var output: Activity

    Definition Classes
    AbstractModule
  70. val outputHeight: Int

    output height

  71. val outputWidth: Int

    output width

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

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

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

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

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

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

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

    Definition Classes
    AbstractModule
  79. def release(): Unit

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

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

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

    Definition Classes
    AbstractModule
  83. final def saveDefinition(path: String, overWrite: Boolean): ResizeBilinear.this.type

    Definition Classes
    AbstractModule
  84. final def saveModule(path: String, weightPath: String, overWrite: Boolean): ResizeBilinear.this.type

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

    Definition Classes
    AbstractModule
  86. final def saveTorch(path: String, overWrite: Boolean): ResizeBilinear.this.type

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

    Definition Classes
    AbstractModule
  88. var scaleB: Double

    Attributes
    protected
    Definition Classes
    AbstractModule
  89. var scaleW: Double

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

    Definition Classes
    AbstractModule
  91. final def setLine(line: String): ResizeBilinear.this.type

    Definition Classes
    AbstractModule
  92. final def setName(name: String): ResizeBilinear.this.type

    Definition Classes
    AbstractModule
  93. def setScaleB(b: Double): ResizeBilinear.this.type

    Definition Classes
    Container → AbstractModule
  94. def setScaleW(w: Double): ResizeBilinear.this.type

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

    Definition Classes
    AbstractModule
  96. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Definition Classes
    AbstractModule
  98. def toString(): String

    Definition Classes
    AbstractModule → AnyRef → Any
  99. var train: Boolean

    Attributes
    protected
    Definition Classes
    AbstractModule
  100. final def training(): ResizeBilinear.this.type

    Definition Classes
    Container → AbstractModule
  101. def unFreeze(names: String*): ResizeBilinear.this.type

    Definition Classes
    Container → AbstractModule
  102. def updateGradInput(input: Activity, gradOutput: Activity): Activity

    Definition Classes
    KerasLayer → AbstractModule
  103. def updateOutput(input: Activity): Activity

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

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

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

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

    Definition Classes
    AbstractModule

Deprecated Value Members

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

    Definition Classes
    AbstractModule
    Annotations
    @deprecated
    Deprecated

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

Inherited from LayerWrapperByForward[T]

Inherited from Net

Inherited from KerasLayer[Activity, Activity, T]

Inherited from Container[Activity, Activity, T]

Inherited from AbstractModule[Activity, Activity, T]

Inherited from InferShape

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped