fix _init_amp when export

pull/2526/head
gaotingquan 2023-05-26 03:33:04 +00:00 committed by Tingquan Gao
parent 5bb2e8c339
commit 2d8346cd3b
1 changed files with 3 additions and 0 deletions

View File

@ -524,6 +524,9 @@ class Engine(object):
)
def _init_amp(self):
if self.mode == "export":
return
amp_config = self.config.get("AMP", None)
use_amp = True if amp_config and amp_config.get("use_amp",
True) else False