chore: Accept AcceleratorDevice enum type

Signed-off-by: Christoph Auer <cau@zurich.ibm.com>
This commit is contained in:
Christoph Auer 2025-02-03 14:32:44 +01:00 committed by ahn
parent dd0728e646
commit 0bca78a84b

View File

@ -39,7 +39,7 @@ class AcceleratorOptions(BaseSettings):
)
num_threads: int = 4
device: str = "auto"
device: Union[str, AcceleratorDevice] = "auto"
@field_validator("device")
def validate_device(cls, value):