Skip to content

Commit

Permalink
deprecate nn.keras (intel-analytics#3013)
Browse files Browse the repository at this point in the history
* deprecate nn.keras
  • Loading branch information
Le-Zheng committed Jun 30, 2020
1 parent 6a197cb commit af18141
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ import com.intel.analytics.bigdl.utils.{Node, Shape}

import scala.reflect.ClassTag

@deprecated("com.intel.analytics.bigdl.nn.keras is deprecated in BigDL 0.11, " +
"and will be removed in future releases", "0.10.0")
class Input[T: ClassTag](val inputShape: Shape)(implicit ev: TensorNumeric[T])
extends KerasLayer[Activity, Activity, T](KerasLayer.addBatch(inputShape)) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ abstract class KerasModel[T: ClassTag](implicit ev: TensorNumeric[T])

}


@deprecated("`Model` is deprecated." +
"com.intel.analytics.bigdl.nn.keras is deprecated in BigDL 0.11, " +
"and will be removed in future releases", "0.10.0")
class Model[T: ClassTag](private val _inputs : Seq[ModuleNode[T]],
private val _outputs : Seq[ModuleNode[T]])(implicit ev: TensorNumeric[T])
extends KerasModel[T] {
Expand Down Expand Up @@ -259,6 +263,9 @@ object Model extends KerasLayerSerializable{

}

@deprecated("`Sequential` is deprecated." +
"com.intel.analytics.bigdl.nn.keras is deprecated in BigDL 0.11, " +
"and will be removed in future releases", "0.10.0")
class Sequential[T: ClassTag]()
(implicit ev: TensorNumeric[T]) extends KerasModel[T] {

Expand Down

0 comments on commit af18141

Please sign in to comment.