Skip to content

Commit 6f5a792

Browse files
Fix round() output dtype for boolean input to match numpy
1 parent 935e4e6 commit 6f5a792

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions

dpctl_ext/tensor/libtensor/include/kernels/elementwise_functions/round.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ template <typename T>
116116
struct RoundOutputType
117117
{
118118
using value_type = typename std::disjunction<
119+
td_ns::TypeMapResultEntry<T, bool, sycl::half>,
119120
td_ns::TypeMapResultEntry<T, std::uint8_t>,
120121
td_ns::TypeMapResultEntry<T, std::uint16_t>,
121122
td_ns::TypeMapResultEntry<T, std::uint32_t>,

0 commit comments

Comments
 (0)