Skip to content

Commit

Permalink
fix release bug of AbstractInferenceModel (#1556)
Browse files Browse the repository at this point in the history
* fix release bug of AbstractInferenceModel

* fix release bug of AbstractInferenceModel

* fix bug
  • Loading branch information
glorysdj authored Aug 8, 2019
1 parent 5e3f3ef commit b98d97a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void reload(String modelPath, String weightPath) {
}

public void release() {
release();
doRelease();
}

@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ class InferenceModel(private var autoScalingEnabled: Boolean = true,
/**
* release original model and all the cloned ones in the queue
*/
def release(): Unit = {
def doRelease(): Unit = {
clearModelQueue()
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class OpenVINOModelSuite extends FunSuite with Matchers with BeforeAndAfterAll
threads2.foreach(_.join())

fasterrcnnModel.release()
fasterrcnnInferenceModel.release()
fasterrcnnInferenceModel.doRelease()
}

def almostEqual(x: Float, y: Float, precision: Float): Boolean = {
Expand Down

0 comments on commit b98d97a

Please sign in to comment.