Class/Object

com.intel.analytics.zoo.pipeline.api.net

GraphNet

Related Docs: object GraphNet | package net

Permalink

class GraphNet[T] extends Container[Activity, Activity, T] with NetUtils[T, GraphNet[T]] with Predictable[T]

Linear Supertypes
Predictable[T], NetUtils[T, GraphNet[T]], Container[Activity, Activity, T], AbstractModule[Activity, Activity, T], InferShape, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GraphNet
  2. Predictable
  3. NetUtils
  4. Container
  5. AbstractModule
  6. InferShape
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GraphNet(graph: Graph[T])(implicit tag: ClassTag[T], ev: TensorNumeric[T])

    Permalink

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: Activity, gradOutput: Activity): Unit

    Permalink
    Definition Classes
    GraphNet → 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: Activity, gradOutput: Activity): Activity

    Permalink
    Definition Classes
    AbstractModule
  8. var backwardTime: Long

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  9. def canEqual(other: Any): Boolean

    Permalink
    Definition Classes
    Container → AbstractModule
  10. final def checkEngineType(): GraphNet.this.type

    Permalink
    Definition Classes
    Container → AbstractModule
  11. def clearState(): GraphNet.this.type

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  15. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    Container → AbstractModule → AnyRef → Any
  17. implicit val ev: TensorNumeric[T]

    Permalink
    Definition Classes
    GraphNetPredictable
  18. final def evaluate(): GraphNet.this.type

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  26. var forwardTime: Long

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

    Permalink
    Definition Classes
    Container → AbstractModule
  28. def freezeUpTo(names: String*): GraphNet.this.type

    Permalink

    Freeze the model from the bottom up to the layers specified by names (inclusive).

    Freeze the model from the bottom up to the layers specified by names (inclusive).

    This is useful for finetune a model

    Definition Classes
    NetUtils
  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 getSubModules(): List[AbstractModule[Activity, Activity, T]]

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  43. var gradInput: Activity

    Permalink
    Definition Classes
    AbstractModule
  44. final def hasName: Boolean

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

    Permalink
    Definition Classes
    Container → AbstractModule → AnyRef → Any
  46. val inputNodes: Seq[ModuleNode[T]]

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

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

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

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

    Permalink
    Definition Classes
    Any
  51. final def isTraining(): Boolean

    Permalink
    Definition Classes
    AbstractModule
  52. var line: String

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

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

    Permalink
    Definition Classes
    AbstractModule
  55. val module: Module[T]

    Permalink
    Attributes
    protected
    Definition Classes
    GraphNetPredictable
  56. val modules: ArrayBuffer[AbstractModule[Activity, Activity, T]]

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

    Permalink
    Definition Classes
    AnyRef
  58. def newGraph(outputs: Seq[String]): GraphNet[T]

    Permalink

    Specify a seq of nodes as output and return a new graph using the existing nodes

    Specify a seq of nodes as output and return a new graph using the existing nodes

    Definition Classes
    GraphNetNetUtils
  59. def newGraph(output: String): GraphNet[T]

    Permalink

    Specify a node as output and return a new graph using the existing nodes

    Specify a node as output and return a new graph using the existing nodes

    Definition Classes
    GraphNetNetUtils
  60. def node(name: String): ModuleNode[T]

    Permalink

    Return the node in the graph as specified by the name

    Return the node in the graph as specified by the name

    Definition Classes
    GraphNetNetUtils
  61. def nodes(names: Seq[String]): Seq[ModuleNode[T]]

    Permalink

    Return the nodes in the graph as specified by the names

    Return the nodes in the graph as specified by the names

    Definition Classes
    NetUtils
  62. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  64. var output: Activity

    Permalink
    Definition Classes
    AbstractModule
  65. val outputNodes: Seq[ModuleNode[T]]

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

    Permalink
    Definition Classes
    Container → AbstractModule
  67. def predict(x: TextSet): TextSet

    Permalink

    The default batchPerThread is 4.

    The default batchPerThread is 4. For DistributedTextSet, the total batchSize is batchPerThread * rdd.getNumPartitions. For LocalTextSet, the total batchSize is batchPerThread * numOfCores.

    x

    Prediction data, TextSet.

    Definition Classes
    Predictable
  68. def predict(x: TextSet, batchPerThread: Int): TextSet

    Permalink

    Use a model to do prediction on TextSet.

    Use a model to do prediction on TextSet.

    x

    Prediction data, TextSet.

    batchPerThread

    The total batch size is batchPerThread * rdd.getNumPartitions(distributed mode) or batchPerThread * numOfCores(local mode)

    Definition Classes
    Predictable
  69. def predict(x: ImageSet): ImageSet

    Permalink

    The default batchPerThread is 4.

    The default batchPerThread is 4. For DistributedImageSet, the total batchSize is batchPerThread * rdd.getNumPartitions. For LocalImageSet, the total batchSize is batchPerThread * numOfCores.

    x

    Prediction data, ImageSet.

    Definition Classes
    Predictable
  70. def predict(x: ImageSet, batchPerThread: Int): ImageSet

    Permalink

    Use a model to do prediction on ImageSet.

    Use a model to do prediction on ImageSet.

    x

    Prediction data, ImageSet.

    batchPerThread

    The total batch size is batchPerThread * rdd.getNumPartitions(distributed mode) or batchPerThread * numOfCores(local mode)

    Definition Classes
    Predictable
  71. def predict(x: Array[Sample[T]])(implicit ev: TensorNumeric[T]): Array[Activity]

    Permalink

    Use a model to do prediction in local mode.

    Use a model to do prediction in local mode. The total batch size is batchPerThread * numOfCores, and batchPerThread is 4 by default.

    x

    Prediction data, array of Sample.

    Definition Classes
    Predictable
  72. def predict(x: Array[Sample[T]], batchPerThread: Int)(implicit ev: TensorNumeric[T]): Array[Activity]

    Permalink

    Use a model to do prediction in local mode.

    Use a model to do prediction in local mode.

    x

    Prediction data, array of Sample.

    batchPerThread

    The total batchSize is batchPerThread * numOfCores.

    Definition Classes
    Predictable
  73. def predict(x: LocalDataSet[MiniBatch[T]])(implicit ev: TensorNumeric[T]): Array[Activity]

    Permalink

    Use a model to do prediction in local mode.

    Use a model to do prediction in local mode. The total batch size is batchPerThread * numOfCores, and batchPerThread is 4 by default.

    x

    Prediction data, LocalDataSet.

    Definition Classes
    Predictable
  74. def predict(x: LocalDataSet[MiniBatch[T]], batchPerThread: Int)(implicit ev: TensorNumeric[T]): Array[Activity]

    Permalink

    Use a model to do prediction in local mode.

    Use a model to do prediction in local mode.

    x

    Prediction data, LocalDataSet.

    batchPerThread

    The total batchSize is batchPerThread * numOfCores.

    Definition Classes
    Predictable
  75. def predict(x: RDD[Sample[T]])(implicit ev: TensorNumeric[T]): RDD[Activity]

    Permalink

    Use a model to do prediction for RDD.

    Use a model to do prediction for RDD. The default batchPerThread is 4, and the total batchSize is batchPerThread * rdd.getNumPartitions.

    x

    Prediction data, RDD of Sample.

    Definition Classes
    Predictable
  76. def predict(x: RDD[Sample[T]], batchPerThread: Int)(implicit ev: TensorNumeric[T]): RDD[Activity]

    Permalink

    Use a model to do prediction for RDD.

    Use a model to do prediction for RDD.

    x

    Prediction data, RDD of Sample.

    batchPerThread

    The total batchSize is batchPerThread * rdd.getNumPartitions.

    Definition Classes
    Predictable
  77. final def predict(dataset: RDD[Sample[T]], batchSize: Int, shareBuffer: Boolean): RDD[Activity]

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

    Permalink
    Definition Classes
    AbstractModule
  79. def predictClasses(x: RDD[Sample[T]], batchPerThread: Int = 4, zeroBasedLabel: Boolean = true): RDD[Int]

    Permalink

    Use a model to predict for classes.

    Use a model to predict for classes. By default, label predictions start from 0.

    x

    Prediction data, RDD of Sample.

    batchPerThread

    The default batchPerThread is 4, and the total batchSize is batchPerThread * rdd.getNumPartitions.

    zeroBasedLabel

    Boolean. Whether result labels start from 0. Default is true. If false, result labels start from 1.

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

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  84. def release(): Unit

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AbstractModule
  93. var scaleB: Double

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

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

    Permalink
    Definition Classes
    AbstractModule
  96. final def setLine(line: String): GraphNet.this.type

    Permalink
    Definition Classes
    AbstractModule
  97. final def setName(name: String): GraphNet.this.type

    Permalink
    Definition Classes
    AbstractModule
  98. def setScaleB(b: Double): GraphNet.this.type

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

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

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

    Permalink
    Definition Classes
    AnyRef
  102. implicit val tag: ClassTag[T]

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

    Permalink
    Definition Classes
    AbstractModule
  104. def toKeras(): KerasLayer[Activity, Activity, T]

    Permalink
    Definition Classes
    GraphNetNetUtils
  105. def toString(): String

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

    Permalink
    Attributes
    protected
    Definition Classes
    AbstractModule
  107. final def training(): GraphNet.this.type

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

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

    Permalink
    Definition Classes
    GraphNet → AbstractModule
  110. def updateOutput(input: Activity): Activity

    Permalink
    Definition Classes
    GraphNet → AbstractModule
  111. final def wait(): Unit

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

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

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

    Permalink
    Definition Classes
    AbstractModule

Deprecated Value Members

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

    Permalink
    Definition Classes
    AbstractModule
    Annotations
    @deprecated
    Deprecated

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

Inherited from Predictable[T]

Inherited from NetUtils[T, GraphNet[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