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

Method Init

tensorflow/core/common_runtime/eager/kernel_and_device.cc:74–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74Status KernelAndDeviceOp::Init(const NodeDef& ndef,
75 GraphCollector* graph_collector) {
76 OpKernel* k = nullptr;
77 if (flr_ == nullptr) {
78 return errors::Internal(
79 "A valid FunctionLibraryRuntime must be provided when running ops "
80 "based on OpKernel.");
81 }
82 TF_RETURN_IF_ERROR(flr_->CreateKernel(ndef, &k));
83 kernel_.reset(k);
84 return Status::OK();
85}
86
87Status KernelAndDeviceFunc::Init(const NodeDef& ndef,
88 GraphCollector* graph_collector) {

Callers 3

BM_KernelAndDeviceInitFunction · 0.45
BM_KernelAndDeviceRunFunction · 0.45
EagerLocalExecuteFunction · 0.45

Calls 15

InternalFunction · 0.85
OpDefForOpFunction · 0.85
InOutTypesForNodeFunction · 0.85
InvalidArgumentFunction · 0.85
AttrSliceClass · 0.85
GetFLRMethod · 0.80
signatureMethod · 0.80
c_strMethod · 0.80
attrMethod · 0.80
GetOutputDevicesMethod · 0.80
nameMethod · 0.65
CreateKernelMethod · 0.45

Tested by 2

BM_KernelAndDeviceInitFunction · 0.36
BM_KernelAndDeviceRunFunction · 0.36