Skip to content

Commit 5b18c2c

Browse files
committed
Added name attribute to HeadType
1 parent 4b84d04 commit 5b18c2c

File tree

1 file changed

+3
-0
lines changed
  • luxonis_ml/nn_archive/config_building_blocks/base_models

1 file changed

+3
-0
lines changed

luxonis_ml/nn_archive/config_building_blocks/base_models/head.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
class Head(BaseModel, ABC):
1717
"""Represents head of a model.
1818
19+
@type name: str | None
20+
@ivar name: Optional name of the head.
1921
@type parser: str
2022
@ivar parser: Name of the parser responsible for processing the models output.
2123
@type outputs: List[str] | None
@@ -27,6 +29,7 @@ class Head(BaseModel, ABC):
2729
@ivar metadata: Metadata of the parser.
2830
"""
2931

32+
name: Optional[str] = Field(None, description="Optional name of the head.")
3033
parser: str = Field(
3134
description="Name of the parser responsible for processing the models output."
3235
)

0 commit comments

Comments
 (0)