Object

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

KerasUtils

Related Doc: package utils

Permalink

object KerasUtils

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. KerasUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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 addBatch(shape: Shape): Shape

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def computeConvOutputLength(inputLength: Int, filterSize: Int, borderMode: String, stride: Int, dilation: Int = 1): Int

    Permalink
  8. def countParams[T](layer: KerasLayer[Activity, Activity, T])(implicit arg0: ClassTag[T]): (Int, Int)

    Permalink

    Count the total number of parameters for a KerasLayer.

    Count the total number of parameters for a KerasLayer. Return a tuple (total params #, trainable params #)

  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def fuse[T](torchLayer: AbstractModule[Activity, Activity, T], kerasActivation: KerasLayer[Tensor[T], Tensor[T], T], batchInputShape: Shape)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): AbstractModule[Activity, Activity, T]

    Permalink
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def getInitMethod(init: String): InitializationMethod

    Permalink
  15. def getKerasActivation[T](activation: String)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): KerasLayer[Tensor[T], Tensor[T], T]

    Permalink
  16. def getLayerSummary[T](layer: KerasLayer[Activity, Activity, T])(implicit arg0: ClassTag[T]): Array[String]

    Permalink

    Return the layer summary information as an array of String, in the order of: Layer (type), OutputShape, Param #

  17. def getNodeSummary[T](node: ModuleNode[T])(implicit arg0: ClassTag[T]): Array[String]

    Permalink

    Together with the layer summary of a node, also return the name of the node(s) that it is connected to.

    Together with the layer summary of a node, also return the name of the node(s) that it is connected to. If there are multiple connected nodes, they will be combined by ", "

  18. def getPadsFromBorderMode(borderMode: String = "valid"): (Int, Int)

    Permalink
  19. def getPadsFromBorderMode3D(borderMode: String = "valid"): (Int, Int, Int)

    Permalink
  20. def getTorchActivation[T](activation: String)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): AbstractModule[Tensor[T], Tensor[T], T]

    Permalink
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  26. def printNodeSummary[T](node: ModuleNode[T], lineLength: Int = 120, positions: Array[Double] = Array(.33, .55, .67, 1))(implicit arg0: ClassTag[T]): (Int, Int)

    Permalink

    Print the summary of a node in a line.

    Print the summary of a node in a line. Return a tuple (total params #, trainable params #) of this node.

  27. def printRow(fields: Array[String], lineLength: Int = 120, positions: Array[Double] = Array(.33, .55, .67, 1), includeSplitLine: Boolean = true, splitChar: Char = '_'): Unit

    Permalink

    Print a row containing several fields.

    Print a row containing several fields.

    fields

    The fields to be printed out.

    lineLength

    The total length of a printed line.

    positions

    The maximum absolute length proportion(%) of each field. Default is Array(.33, .55, .67, 1), meaning that the first field will occupy up to 33% of lineLength, the second field will occupy up to (55-33)% of lineLength, the third field will occupy up to (67-55)% of lineLength, the fourth field will occupy the remaining line (100-67)%. If the field has a larger length, the remaining part will be trimmed. If the field has a smaller length, the remaining part will be white spaces.

    includeSplitLine

    Whether to add a split line after printing one row.

    splitChar

    The character to compose the split line.

  28. def printSplitLine(char: Char, lineLength: Int = 120): Unit

    Permalink

    Print a split line that repeats the 'char' for 'lineLength' times.

  29. def removeBatch(shape: Shape): Shape

    Permalink
  30. def strShape(shape: Shape): String

    Permalink

    Convert a Shape to String format using 'None' to indicate batch, which is the same as Keras.

    Convert a Shape to String format using 'None' to indicate batch, which is the same as Keras. Used to print out the shape.

    For example, (None, 10) will be returned for Shape(-1, 10), a SingleShape. (None, 10) (None, 8) will be returned for a MultiShape which consists of Shape(-1, 10), Shape(-1, 8).

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

    Permalink
    Definition Classes
    AnyRef
  32. def toBigDLCriterion[T](loss: String)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): Criterion[T]

    Permalink
  33. def toBigDLFormat(dimOrdering: String): DataFormat

    Permalink
  34. def toBigDLFormat5D(dimOrdering: String): String

    Permalink
  35. def toBigDLMetrics[T](metrics: List[String])(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): List[ValidationMethod[T]]

    Permalink
  36. def toBigDLOptimMethod[T](optimMethod: String)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): OptimMethod[T]

    Permalink
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped