Closed mtsokol closed 1 month ago
Ah yes, this is a little strange because julia doesn't have a default notion of truthyness. At some point we may want to start defining some python-specific operators in finch-tensor for this kind of thing. However, in this case, could we map != 0
before any
?
Sure! I will do it this way.
Okay, I'll close this issue then if that's alright?
Sure! I will reach out if != 0
won't be sufficient.
Hi @willow-ahrens,
Here's one detail for
any
andall
. To adhere to Array API we should also support other dtypes (int, float). One option is: I can do it onfinch-tensor
side where I call eagerastype(tns, finch.bool)
to convert to bool, but then we still need support converting non-bool to bool dtypes in Finch. Or support all dtypes inany
,all
directly. I'm not sure what is the correct way.