Object

com.intel.analytics.bigdl.nn

Module

Related Doc: package nn

Permalink

object Module

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Module
  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. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. def flatten[T](parameters: Array[Tensor[T]])(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): Tensor[T]

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. def isCompact[T](parameters: Array[Tensor[T]])(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): Tensor[T]

    Permalink
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def loadCaffeModel[T](defPath: String, modelPath: String)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): AbstractModule[Activity, Activity, T]

    Permalink

    Loaf caffe trained model from prototxt and weight files

    Loaf caffe trained model from prototxt and weight files

    defPath

    caffe model definition file path

    modelPath

    caffe model binary file containing weight and bias

  15. def loadModule[T](path: String, weightPath: String = null)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): AbstractModule[Activity, Activity, T]

    Permalink

    Load model from path.

    Load model from path.

    T

    numeric type

    path

    path to save module, local file system, HDFS and Amazon S3 is supported. HDFS path should be like "hdfs://[host]:[port]/xxx" Amazon S3 path should be like "s3a://bucket/xxx"

    weightPath

    : where weight is stored

    returns

    model loaded from path

  16. def loadTF[T](graphFile: String, inputs: Seq[String], outputs: Seq[String], byteOrder: ByteOrder = ByteOrder.LITTLE_ENDIAN, binFile: Option[String] = None, generatedBackward: Boolean = true)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): Module[T]

    Permalink

    Load tensorflow model from its saved protobuf file.

    Load tensorflow model from its saved protobuf file.

    graphFile

    where is the protobuf model file

    inputs

    input node names

    outputs

    output node names, the output tensor order is same with the node order

    byteOrder

    byte order in the tensorflow file. The default value is little endian

    binFile

    where is the model variable file

    generatedBackward

    if generate backward graph

    returns

    BigDL model

  17. def loadTorch[T](path: String)(implicit arg0: ClassTag[T]): AbstractModule[Activity, Activity, T]

    Permalink
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def tensorflowCheckpoints[T](graphFile: String, binFile: String, byteOrder: ByteOrder = ByteOrder.LITTLE_ENDIAN)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): Session[T]

    Permalink

    Load tensorflow checkpoints

  23. def toString(): String

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

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

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

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

Deprecated Value Members

  1. def load[T](path: String)(implicit arg0: ClassTag[T]): AbstractModule[Activity, Activity, T]

    Permalink

    Load model from path.

    Load model from path.

    T

    numeric type

    path

    path to save module, local file system, HDFS and Amazon S3 is supported. HDFS path should be like "hdfs://[host]:[port]/xxx" Amazon S3 path should be like "s3a://bucket/xxx"

    returns

    model loaded from path

    Annotations
    @deprecated
    Deprecated

    (Since version 0.3) Java based serialization not recommended any more, please use loadModule instead

  2. def loadCaffe[T](model: AbstractModule[Activity, Activity, T], defPath: String, modelPath: String, matchAll: Boolean = true)(implicit arg0: ClassTag[T], ev: TensorNumeric[T]): AbstractModule[Activity, Activity, T]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.2) Please try to use the loadCaffeModel API

Inherited from AnyRef

Inherited from Any

Ungrouped