Skip to content

Commit

Permalink
change type (intel-analytics#2959)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyita committed Oct 16, 2020
1 parent 77b12d9 commit f90e0aa
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ class PythonInferenceModel[T: ClassTag](implicit ev: TensorNumeric[T]) extends P
model: InferenceModel,
modelPath: String,
modelType: String,
inputs: Array[String],
outputs: Array[String],
inputs: JList[String],
outputs: JList[String],
intraOpParallelismThreads: Int,
interOpParallelismThreads: Int,
usePerSessionThreads: Boolean): Unit = {
model.doLoadTensorflow(modelPath, modelType, inputs, outputs, intraOpParallelismThreads,
model.doLoadTensorflow(modelPath, modelType, Option(inputs).map(_.asScala.toArray).orNull,
Option(outputs).map(_.asScala.toArray).orNull, intraOpParallelismThreads,
interOpParallelismThreads, usePerSessionThreads)
}

Expand Down

0 comments on commit f90e0aa

Please sign in to comment.