MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / IsIndexedSlicesHelper

Function IsIndexedSlicesHelper

tensorflow/python/util/util.cc:253–258  ·  view source on GitHub ↗

Returns 1 if `o` is an object of type IndexedSlices. Returns 0 otherwise. Returns -1 if an error occurred.

Source from the content-addressed store, hash-verified

251// Returns 0 otherwise.
252// Returns -1 if an error occurred.
253int 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.

Callers 1

IsIndexedSlicesFunction · 0.85

Calls 2

CachedLookupMethod · 0.80

Tested by

no test coverage detected