MCPcopy Create free account
hub / github.com/alibaba/nann / CachedLookup

Method CachedLookup

tensorflow/tensorflow/python/util/util.cc:146–186  ·  view source on GitHub ↗

Caches successful executions of the one-argument (PyObject*) callable "ternary_predicate" based on the type of "o". -1 from the callable indicates an unsuccessful check (not cached), 0 indicates that "o"'s type does not match the predicate, and 1 indicates that it does. Used to avoid calling back into Python for expensive isinstance checks.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 10

IsMappingHelperFunction · 0.80
IsMappingViewHelperFunction · 0.80
IsAttrsHelperFunction · 0.80
IsIndexedSlicesHelperFunction · 0.80
IsTensorHelperFunction · 0.80
IsResourceVariableHelperFunction · 0.80
IsVariableHelperFunction · 0.80
IsSequenceHelperFunction · 0.80
IsCompositeTensorHelperFunction · 0.80
IsTypeSpecHelperFunction · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
sizeMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected