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

Method CreateKernel

tensorflow/core/common_runtime/function.cc:258–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258Status FunctionLibraryRuntimeOverlay::CreateKernel(const NodeDef&, OpKernel**) {
259 // We don't have access to base_lib_def_ in base function library runtime (aka
260 // FunctionLibraryRuntimeImpl), so to make sure we do not create a kernel with
261 // the wrong lib_def we just disable creation of new kernels through overlays.
262 //
263 // When we call Instantiate from the base runtime with the lib_def option,
264 // the base runtime implementation is responsible for correctly passing it
265 // through to all kernel constructions.
266 return errors::Internal(
267 "Overlay function library runtime doesn't support kernel creation.");
268}
269
270bool FunctionLibraryRuntimeOverlay::IsStateful(
271 const string& function_name) const {

Callers 3

CreateExecutorsMethod · 0.45
InitMethod · 0.45
InitItemMethod · 0.45

Calls 15

InternalFunction · 0.85
CreateNonCachedKernelFunction · 0.85
InstantiateFunction · 0.85
AttrSliceClass · 0.85
MTypeFromDTypeFunction · 0.85
DeviceTypeClass · 0.85
AllocatorAttributesClass · 0.85
CanCreateKernelMethod · 0.80
attrMethod · 0.80
signatureMethod · 0.80
CreateKernelFunction · 0.50
GetFunctionBodyFunction · 0.50

Tested by

no test coverage detected