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

Function Instantiate

tensorflow/core/kernels/functional_ops.cc:39–42  ·  view source on GitHub ↗

Helper to instantiate function "func" in the library "lib".

Source from the content-addressed store, hash-verified

37
38// Helper to instantiate function "func" in the library "lib".
39Status Instantiate(FunctionLibraryRuntime* lib, const NameAttrList& func,
40 FunctionLibraryRuntime::Handle* handle) {
41 return lib->Instantiate(func.name(), AttrSlice(&func.attr()), handle);
42}
43
44template <typename To, typename From> // use like this: down_cast<T*>(foo);
45inline To down_cast(From* f) { // so we only accept pointers

Callers 13

InstantiateMethod · 0.85
TEST_FFunction · 0.85
TEST_FFunction · 0.85
CreateKernelMethod · 0.85
InstantiateMethod · 0.85
TEST_FFunction · 0.85
ComputeAsyncMethod · 0.85
ComputeAsyncMethod · 0.85
ComputeAsyncMethod · 0.85
ComputeAsyncMethod · 0.85

Calls 4

AttrSliceClass · 0.85
attrMethod · 0.80
nameMethod · 0.65
InstantiateMethod · 0.45

Tested by 3

TEST_FFunction · 0.68
TEST_FFunction · 0.68
TEST_FFunction · 0.68