mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-04 20:47:42 +03:00
Add hwcn
This commit is contained in:
parent
0ce2f6d411
commit
a5f6c754de
@ -26,6 +26,7 @@ class InputTensorEnum(str, Enum):
|
||||
nchw = "nchw"
|
||||
nhwc = "nhwc"
|
||||
hwnc = "hwnc"
|
||||
hwcn = "hwcn"
|
||||
|
||||
|
||||
class InputDTypeEnum(str, Enum):
|
||||
|
||||
@ -73,3 +73,5 @@ def tensor_transform(desired_shape: InputTensorEnum):
|
||||
return (0, 3, 1, 2)
|
||||
elif desired_shape == InputTensorEnum.hwnc:
|
||||
return (1, 2, 0, 3)
|
||||
elif desired_shape == InputTensorEnum.hwcn:
|
||||
return (1, 2, 3, 0)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user