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

Method GetFn

tensorflow/core/framework/op_segment_test.cc:64–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 }
63
64 OpSegment::CreateKernelFn GetFn(const NodeDef* ndef) {
65 return [this, ndef](OpKernel** kernel) {
66 Status s;
67 auto created = CreateOpKernel(DEVICE_CPU, &device_, cpu_allocator(),
68 *ndef, TF_GRAPH_DEF_VERSION, &s);
69 if (s.ok()) {
70 *kernel = created.release();
71 }
72 return s;
73 };
74 }
75};
76
77TEST_F(OpSegmentTest, Basic) {

Callers

nothing calls this directly

Calls 4

CreateOpKernelFunction · 0.85
cpu_allocatorFunction · 0.85
okMethod · 0.45
releaseMethod · 0.45

Tested by

no test coverage detected