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

Function Init

tensorflow/lite/kernels/if.cc:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33void* Init(TfLiteContext* context, const char* buffer, size_t length) {
34 auto* op_data = new OpData;
35 const auto* params = reinterpret_cast<const TfLiteIfParams*>(buffer);
36 op_data->then_subgraph_index = params->then_subgraph_index;
37 op_data->else_subgraph_index = params->else_subgraph_index;
38 return op_data;
39}
40
41void Free(TfLiteContext* context, void* buffer) {
42 delete reinterpret_cast<OpData*>(buffer);

Callers 15

InitMethod · 0.50
InitMethod · 0.50
InitMethod · 0.50
InitMethod · 0.50
stream.ccFile · 0.50
GetCudaContextsCountFunction · 0.50
VisibleDeviceCountMethod · 0.50
InitMethod · 0.50
VisibleDeviceCountMethod · 0.50
InitMethod · 0.50
RunMethod · 0.50
TEST_FFunction · 0.50

Calls

no outgoing calls

Tested by 15

TEST_FFunction · 0.40
HeapSimulatorTrackerMethod · 0.40
RunTestMethod · 0.40
TEST_FFunction · 0.40
RunTestMethod · 0.40
TEST_FFunction · 0.40
RunTestMethod · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
TEST_FFunction · 0.40
InitMethod · 0.40