object TensorflowWrapper extends Serializable
Companion object
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- TensorflowWrapper
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val InitAllTableOP: String
- val SaveConstOP: String
- val SaveControlDependenciesOP: String
- val SaveRestoreAllOP: String
- val SavedModelPB: String
- val TFVarsSuffix: String
- val VariablesIdxValue: String
- val VariablesKey: String
- val VariablesPathValue: String
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def extractVariablesSavedModel(session: Session): Variables
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
read(file: String, zipped: Boolean = true, useBundle: Boolean = false, tags: Array[String] = Array.empty[String], initAllTables: Boolean = false, savedSignatures: Option[Map[String, String]] = None): (TensorflowWrapper, Option[Map[String, String]])
Read method to create tmp folder, unpack archive and read file as SavedModelBundle
Read method to create tmp folder, unpack archive and read file as SavedModelBundle
- file
: the file to read
- zipped
: boolean flag to know if compression is applied
- useBundle
: whether to use the SaveModelBundle object to parse the TF saved model
- tags
: tags to retrieve on the model bundle
- initAllTables
: boolean flag whether to retrieve the TF init operation
- returns
Returns a greeting based on the
name
field.
- def readChkPoints(file: String, zipped: Boolean = true, tags: Array[String] = Array.empty[String], initAllTables: Boolean = false): TensorflowWrapper
-
def
readGraph(graphFile: String): Graph
Utility method to load a Graph from path
- def readWithSP(file: String, zipped: Boolean = true, useBundle: Boolean = false, tags: Array[String] = Array.empty[String], initAllTables: Boolean = false, loadSP: Boolean = false): TensorflowWrapper
- def readZippedSavedModel(rootDir: String = "", fileName: String = "", tags: Array[String] = Array.empty[String], initAllTables: Boolean = false): TensorflowWrapper
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
withSafeSavedModelBundleLoader(tags: Array[String], savedModelDir: String): SavedModelBundle
Utility method to load the TF saved model bundle