8000 Update on "Add unsigned integer dtypes to PyTorch" · pytorch/pytorch@ced08ca · GitHub
[go: up one dir, main page]

Skip to content

Commit ced08ca

Browse files
committed
Update on "Add unsigned integer dtypes to PyTorch"
The dtypes are very useless right now (not even fill works), but it makes torch.uint16, uint32 and uint64 available as a dtype. Towards #58734 Signed-off-by: Edward Z. Yang <ezyangmeta.com> [ghstack-poisoned]
2 parents 91a7421 + 94d2239 commit ced08ca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c10/core/ScalarType.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,8 @@ static inline bool canCast(const ScalarType from, const ScalarType to) {
587587
return true;
588588
}
589589

590+
C10_API ScalarType promoteTypes(ScalarType a, ScalarType b);
591+
590592
inline std::ostream& operator<<(
591593
std::ostream& stream,
592594
at::ScalarType scalar_type) {

0 commit comments

Comments
 (0)
0