Packages

object OpenvinoWrapper extends Serializable

Companion object

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OpenvinoWrapper
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class DecoderWrappers(decoder: OpenvinoWrapper) extends Product with Serializable
  2. case class EncoderDecoderWithoutPastWrappers(encoder: OpenvinoWrapper, decoder: OpenvinoWrapper) extends Product with Serializable
  3. case class EncoderDecoderWrappers(encoder: OpenvinoWrapper, decoder: OpenvinoWrapper, decoderWithPast: OpenvinoWrapper) extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def convertToOpenvinoFormat(srcPath: String, exportPath: String, compressToFp16: Boolean = false): (Path, Path)

    Convert the model at srcPath to OpenVINO IR Format and export to exportPath.

    Convert the model at srcPath to OpenVINO IR Format and export to exportPath.

    srcPath

    Path to the source model

    exportPath

    Path to export converted model to

    compressToFp16

    Whether to perform weight compression to FP16

    returns

    Paths to the exported XML and BIN files

  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. def read(sparkSession: SparkSession, modelPath: String, modelName: String = Openvino.ovModel, zipped: Boolean = true, useBundle: Boolean = false, detectedEngine: String = Openvino.name, properties: Map[String, String] = Map.empty, ovFileSuffix: Option[String] = None): OpenvinoWrapper

    Read the model from the given path, unpack if zipped, and return the loaded OpenvinoWrapper.

    Read the model from the given path, unpack if zipped, and return the loaded OpenvinoWrapper. If source model is not in OpenVINO format, it is converted first.

    sparkSession

    The Spark Session

    modelPath

    Path to the model

    modelName

    The model filename

    zipped

    Unpack zipped model

    useBundle

    Load exported model

    detectedEngine

    The source model format

    properties

    Properties for this load operation

    returns

    The resulting OpenVINO model wrapper

  17. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  22. def withSafeOvModelLoader(modelPath: Option[String] = None, device: String = "CPU", properties: Map[String, String]): CompiledModel

    Prepare the model for inference by compiling into a device-specific graph representation.

    Prepare the model for inference by compiling into a device-specific graph representation. Returns the compiled model object.

    modelPath

    Optional path to the model directory

    device

    Device to compile the model to

    properties

    Properties for this load operation

    returns

    Object representing the compiled model

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped