Skip to content

Commit

Permalink
expand ModelTemplate.is_global
Browse files Browse the repository at this point in the history
  • Loading branch information
leoll2 committed Mar 17, 2022
1 parent 745ec57 commit 1c1baa6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ote_sdk/ote_sdk/entities/model_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,10 @@ def is_task_global(self) -> bool:
"""
Returns ``True`` if the task is global task i.e. if task produces global labels
"""
return self.task_type in [TaskType.CLASSIFICATION]
return self.task_type in (
TaskType.CLASSIFICATION,
TaskType.ANOMALY_CLASSIFICATION,
)


class NullModelTemplate(ModelTemplate):
Expand Down

0 comments on commit 1c1baa6

Please sign in to comment.