[HARDWARE][POWER] Enable fp16 support for PowerPC (#46135)

Signed-off-by: Rukhaiya <bibirukhaiya123@gmail.com>
This commit is contained in:
Rukhaiya2004
2026-06-23 13:24:49 +00:00
committed by GitHub
parent 1bf149f334
commit 9f5117820f
6 changed files with 332 additions and 68 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ class CpuPlatform(Platform):
@property
def supported_dtypes(self) -> list[torch.dtype]:
if self.get_cpu_architecture() == CpuArchEnum.POWERPC:
return [torch.bfloat16, torch.float32]
return [torch.bfloat16, torch.float32, torch.float16]
elif self.get_cpu_architecture() == CpuArchEnum.ARM and sys.platform.startswith(
"darwin"
):