Returns 1 if `o` is an object of type IndexedSlices. Returns 0 otherwise. Returns -1 if an error occurred.
| 251 | // Returns 0 otherwise. |
| 252 | // Returns -1 if an error occurred. |
| 253 | int IsIndexedSlicesHelper(PyObject* o) { |
| 254 | static auto* const check_cache = new CachedTypeCheck([](PyObject* to_check) { |
| 255 | return IsInstanceOfRegisteredType(to_check, "IndexedSlices"); |
| 256 | }); |
| 257 | return check_cache->CachedLookup(o); |
| 258 | } |
| 259 | |
| 260 | // Returns 1 if `o` is a Tensor. |
| 261 | // Returns 0 otherwise. |
no test coverage detected