Skip to content

Commit

Permalink
Revert S64 and U64 type change for Neuron device due to hardcoded dty…
Browse files Browse the repository at this point in the history
…pe checks in torch-xla (#8375)
  • Loading branch information
aws-nm9 authored Nov 13, 2024
1 parent baa14f3 commit bc227f7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions torch_xla/csrc/dtype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,9 @@ xla::PrimitiveType MaybeDowncastToXlaDeviceType(
return CheckNeuronDevice(hw_type) ? xla::PrimitiveType::S32
: xla::PrimitiveType::S16;
case xla::PrimitiveType::S64:
return CheckNeuronDevice(hw_type) ? xla::PrimitiveType::S32
: xla::PrimitiveType::S64;
return xla::PrimitiveType::S64;
case xla::PrimitiveType::U64:
return CheckNeuronDevice(hw_type) ? xla::PrimitiveType::U32
: xla::PrimitiveType::U64;
return xla::PrimitiveType::U64;
case xla::PrimitiveType::C128:
return xla::PrimitiveType::C128;
default:
Expand Down

0 comments on commit bc227f7

Please sign in to comment.