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

Method Compile

tensorflow/lite/delegates/gpu/cl/kernels/conv_constants.cc:221–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221Status ConvConstants::Compile(const CreationContext& creation_context) {
222 const auto code = GenerateConvolutionConstantCode(
223 definition_.src_tensors[0], definition_.dst_tensors[0],
224 definition_.precision, kernel_size_, dilation_, src_channels_,
225 dst_channels_, *creation_context.device, linked_operations_);
226 std::vector<CompilerOptions> options;
227 if (definition_.precision == CalculationsPrecision::F16 &&
228 creation_context.device->IsAdreno3xx()) {
229 options.push_back(CompilerOptions::ADRENO_FULL_SIMD_LINE);
230 }
231 return creation_context.cache->GetOrCreateCLKernel(
232 code, "main_function", options, *creation_context.context,
233 *creation_context.device, &kernel_);
234}
235
236Status ConvConstants::BindArguments() {
237 kernel_.ResetBindingCounter();

Callers

nothing calls this directly

Calls 4

IsAdreno3xxMethod · 0.80
GetOrCreateCLKernelMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected