Skip to content

Commit

Permalink
fix: support uint dtypes in torch backend
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Jul 23, 2024
1 parent 0d97a31 commit cd847fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ivy/functional/backends/torch/data_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
torch.int32: "int32",
torch.int64: "int64",
torch.uint8: "uint8",
torch.uint16: "uint16",
torch.uint32: "uint32",
torch.uint64: "uint64",
torch.bfloat16: "bfloat16",
torch.float16: "float16",
torch.float32: "float32",
Expand All @@ -30,6 +33,9 @@
"int32": torch.int32,
"int64": torch.int64,
"uint8": torch.uint8,
"uint16": torch.uint16,
"uint32": torch.uint32,
"uint64": torch.uint64,
"bfloat16": torch.bfloat16,
"float16": torch.float16,
"float32": torch.float32,
Expand Down

0 comments on commit cd847fd

Please sign in to comment.