Skip to content

Commit

Permalink
make default DistriOptimizer as V2 (intel-analytics#3129)
Browse files Browse the repository at this point in the history
* make default DistriOptimizer as V2

* update
  • Loading branch information
Le-Zheng authored Jun 22, 2021
1 parent e3ea921 commit a444d1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Engine.scala
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ object Engine {

/**
* Notice: Please use property bigdl.optimizerVersion to set optimizerVersion.
* Default version is OptimizerV1
* Default version is OptimizerV2
*/
private var optimizerVersion: OptimizerVersion = {
System.getProperty("bigdl.optimizerVersion", "optimizerv1").toLowerCase(Locale.ROOT) match {
System.getProperty("bigdl.optimizerVersion", "optimizerv2").toLowerCase(Locale.ROOT) match {
case "optimizerv1" => OptimizerV1
case "optimizerv2" => OptimizerV2
case optimizerVersion => throw new IllegalArgumentException(s"Unknown type $optimizerVersion")
Expand Down

0 comments on commit a444d1e

Please sign in to comment.