Skip to content

Commit

Permalink
[command] set new_types_added on cmd mining (#1732)
Browse files Browse the repository at this point in the history
set new_types_added on cmd mining

Co-authored-by: ymir <ymir@intellif.com>
  • Loading branch information
fenrir-z and ymir authored Jun 2, 2023
1 parent 539d088 commit 7858b9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ymir/command/mir/commands/mining.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ def run_with_args(work_dir: str,
dst_rev=dst_typ_rev_tid.rev_tid,
return_code=return_code,
return_msg=return_msg,
executor=executor)
executor=executor,
new_types_added=(add_prediction
and unknown_types_strategy == UnknownTypesStrategy.ADD))
if return_code != MirCode.RC_OK:
raise MirContainerError(task)

Expand Down

0 comments on commit 7858b9c

Please sign in to comment.