Init dtype and device correctly for OutputBlock

This commit is contained in:
Doryan Kaced 2023-09-01 18:26:24 +02:00
parent 3a10baa9f8
commit 44e184d4d5

View file

@ -242,7 +242,7 @@ class OutputBlock(fl.Chain):
def __init__(self, device: Device | str | None = None, dtype: DType | None = None) -> None:
super().__init__(
fl.GroupNorm(channels=320, num_groups=32),
fl.GroupNorm(channels=320, num_groups=32, device=device, dtype=dtype),
fl.SiLU(),
fl.Conv2d(in_channels=320, out_channels=4, kernel_size=3, stride=1, padding=1, device=device, dtype=dtype),
)