Check if there is any nonzero value in this Index
(self)
| 279 | return Index(mask, self.dtype) |
| 280 | |
| 281 | def has_nonzero(self): |
| 282 | """Check if there is any nonzero value in this Index""" |
| 283 | tensor = self.tousertensor() |
| 284 | return F.sum(tensor, 0) > 0 |
| 285 | |
| 286 | |
| 287 | def toindex(data, dtype="int64"): |
nothing calls this directly
no test coverage detected