From caf6639d806221c3d0c94167135caaacf4a7e574 Mon Sep 17 00:00:00 2001 From: Le-Zheng <30695225+Le-Zheng@users.noreply.github.com> Date: Fri, 2 Jul 2021 16:23:52 +0800 Subject: [PATCH] move dlframe SharedParamsApater to AZ and roll back to OptimizerV1 (#3137) --- .../main/scala/com/intel/analytics/bigdl/common/Engine.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dl/src/main/scala/com/intel/analytics/bigdl/common/Engine.scala b/dl/src/main/scala/com/intel/analytics/bigdl/common/Engine.scala index ff03e2b3678..2b063160010 100644 --- a/dl/src/main/scala/com/intel/analytics/bigdl/common/Engine.scala +++ b/dl/src/main/scala/com/intel/analytics/bigdl/common/Engine.scala @@ -225,10 +225,10 @@ object Engine { /** * Notice: Please use property bigdl.optimizerVersion to set optimizerVersion. - * Default version is OptimizerV2 + * Default version is OptimizerV1 */ private var optimizerVersion: OptimizerVersion = { - System.getProperty("bigdl.optimizerVersion", "optimizerv2").toLowerCase(Locale.ROOT) match { + System.getProperty("bigdl.optimizerVersion", "optimizerv1").toLowerCase(Locale.ROOT) match { case "optimizerv1" => OptimizerV1 case "optimizerv2" => OptimizerV2 case optimizerVersion => throw new IllegalArgumentException(s"Unknown type $optimizerVersion")