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

Function UseFP16SIMD

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

Source from the content-addressed store, hash-verified

176}
177
178bool UseFP16SIMD(const CLDevice& device, CalculationsPrecision precision,
179 bool kernel1x1) {
180 if (!device.IsAdreno()) {
181 return false;
182 }
183 switch (precision) {
184 case CalculationsPrecision::F32:
185 case CalculationsPrecision::F32_F16:
186 return false;
187 case CalculationsPrecision::F16:
188 return device.IsAdreno3xx() && kernel1x1;
189 }
190}
191} // namespace
192
193ConvTexture::ConvTexture(const OperationDef& definition,

Callers 1

CompileMethod · 0.85

Calls 2

IsAdrenoMethod · 0.80
IsAdreno3xxMethod · 0.80

Tested by

no test coverage detected