Skip to content

Commit

Permalink
修复训练时config epoch不起效果的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
AlongWY committed Oct 22, 2020
1 parent 33078dd commit 6d9c009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ltp/exe/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(self, config: Config):
self.tasks = self.config.tasks
self.epoch_size = self.config.epoch_size

def train(self, epoch: int = 30):
def train(self, epoch: int = None):
epoch = self.config.epoch if epoch is None else epoch

# =================================== 任务初始化 =================================
Expand Down

0 comments on commit 6d9c009

Please sign in to comment.