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

Method Compile

tensorflow/lite/delegates/gpu/cl/kernels/add.cc:183–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183Status Add::Compile(const CreationContext& creation_context) {
184 const auto code =
185 GetElementWiseCode(definition_.src_tensors[0], definition_.dst_tensors[0],
186 definition_.precision, linked_operations_);
187 return creation_context.cache->GetOrCreateCLKernel(
188 code, "main_function", *creation_context.context,
189 *creation_context.device, &kernel_);
190}
191
192Add CreateAdd(const OperationDef& definition, const std::vector<int>& channels,
193 int dst_channels) {

Callers 1

ExecuteGPUOperationFunction · 0.45

Calls 2

GetElementWiseCodeFunction · 0.85
GetOrCreateCLKernelMethod · 0.80

Tested by 1

ExecuteGPUOperationFunction · 0.36