Skip to content

Commit 064fdd2

Browse files
committed
model - xresnet 34, 50
1 parent 36bdd35 commit 064fdd2

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/model_constructor/model_constructor.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -310,10 +310,14 @@ def print_cfg(self):
310310
)
311311

312312

313-
xresnet34 = ModelConstructor.from_cfg(
314-
CfgMC(name="xresnet34", expansion=1, layers=[3, 4, 6, 3])
315-
)
313+
@dataclass
314+
class XResNet34(ModelConstructor):
315+
name: str = "xresnet34"
316+
layers: list[int] = field(default_factory=lambda: [3, 4, 6, 3])
317+
316318

317-
xresnet50 = ModelConstructor.from_cfg(
318-
CfgMC(name="xresnet34", expansion=4, layers=[3, 4, 6, 3])
319-
)
319+
@dataclass
320+
class XResNet50(ModelConstructor):
321+
name: str = "xresnet50"
322+
expansion: int = 4
323+
layers: list[int] = field(default_factory=lambda: [3, 4, 6, 3])

0 commit comments

Comments
 (0)