Open zarif98sjs opened 4 months ago
I agree. ~
is bitwise NOT. So the behavior is unexpected if q
is a list of integers.
Oops, will fix if I do a new version.
Ah, nice! When creating the issue I was wondering why nobody noticed all these years 😅 Can send a PR if you want
no I should just do a v2 this summer. lots of small fixes abound
Shouldn't the
where
function be this?Otherwise if we use
~q
, technically isn't that incorrect according to the desired function outcome?If we used
~q
,where(arange(4) * 0, 0, 1)
returnstensor([-1, -1, -1, -1])
. But the desired output should betensor([1, 1, 1, 1])