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

Method Instantiate

tensorflow/core/common_runtime/function.cc:218–230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216FunctionLibraryRuntimeOverlay::~FunctionLibraryRuntimeOverlay() = default;
217
218Status FunctionLibraryRuntimeOverlay::Instantiate(
219 const string& function_name, AttrSlice attrs,
220 const InstantiateOptions& options, Handle* handle) {
221 // We automatically set the `lib_def` option for all instantiations, if the
222 // caller doesn't set this option explicitly.
223 if (!options.lib_def && lib_def_) {
224 InstantiateOptions options_copy = options;
225 options_copy.lib_def = lib_def_;
226 return base_flr_->Instantiate(function_name, attrs, options_copy, handle);
227 } else {
228 return base_flr_->Instantiate(function_name, attrs, options, handle);
229 }
230}
231
232Status FunctionLibraryRuntimeOverlay::ReleaseHandle(Handle handle) {
233 return base_flr_->ReleaseHandle(handle);

Callers 13

GetFunctionBodyFunction · 0.45
GetFunctionBodyFunction · 0.45
GetFunctionBodiesFunction · 0.45
GetOrInstantiateMethod · 0.45
EncapsulateFunction · 0.45
CompileMethod · 0.45
FallbackToTFMethod · 0.45
InstantiateFunctionCallFunction · 0.45

Calls 15

InternalFunction · 0.85
InvalidArgumentFunction · 0.85
InstantiateFunction · 0.85
AttrSliceClass · 0.85
NotFoundFunction · 0.85
GetHandleOnDeviceMethod · 0.80
FindGradientMethod · 0.80
attrMethod · 0.80
AddHandleMethod · 0.80
nameMethod · 0.65
CanonicalizeFunction · 0.50
GetHandleMethod · 0.45

Tested by 1

EncapsulateFunction · 0.36