mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Add unsigned int types to torch/types.h (#130616)
Signed-off-by: Edward Z. Yang <ezyang@meta.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/130616 Approved by: https://github.com/NicolasHug, https://github.com/albanD
This commit is contained in:
parent
2b1df24877
commit
34e57025e1
|
|
@ -49,12 +49,18 @@ constexpr auto kInt8 = at::kChar;
|
|||
constexpr auto kInt16 = at::kShort;
|
||||
constexpr auto kInt32 = at::kInt;
|
||||
constexpr auto kInt64 = at::kLong;
|
||||
constexpr auto kUInt16 = at::kUInt16;
|
||||
constexpr auto kUInt32 = at::kUInt32;
|
||||
constexpr auto kUInt64 = at::kUInt64;
|
||||
constexpr auto kFloat16 = at::kHalf;
|
||||
constexpr auto kFloat32 = at::kFloat;
|
||||
constexpr auto kFloat64 = at::kDouble;
|
||||
|
||||
/// Rust-style short dtypes.
|
||||
constexpr auto kU8 = kUInt8;
|
||||
constexpr auto kU16 = kUInt16;
|
||||
constexpr auto kU32 = kUInt32;
|
||||
constexpr auto kU64 = kUInt64;
|
||||
constexpr auto kI8 = kInt8;
|
||||
constexpr auto kI16 = kInt16;
|
||||
constexpr auto kI32 = kInt32;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user