Skip to content

Commit

Permalink
feat: multi models support with MKL-DNN backend (intel-analytics#2936)
Browse files Browse the repository at this point in the history
* feat: multi models support with MKL-DNN backend
  • Loading branch information
i8run committed Oct 26, 2019
1 parent 63c092b commit 149ce12
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ class DnnTensor[T: ClassTag](
this
}

override def set(other: Tensor[T]): Tensor[T] = {
require(other.isInstanceOf[DnnTensor[T]], s"only support to set DnnTensor")
this._storage.release()
this._storage = other.storage().asInstanceOf[DnnStorage[T]]
this
}

override def toString: String = {
ev.getType() match {
case FloatType =>
Expand Down

0 comments on commit 149ce12

Please sign in to comment.