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

Function GetOptimalStorageType

tensorflow/lite/delegates/gpu/cl/environment.cc:196–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196TensorStorageType GetOptimalStorageType(const CLDevice& gpu) {
197 TensorStorageType storage_type;
198 if (gpu.vendor() != Vendor::QUALCOMM) {
199 storage_type = TensorStorageType::BUFFER;
200 } else {
201 if (gpu.IsAdreno6xxOrHigher()) {
202 storage_type = TensorStorageType::TEXTURE_ARRAY;
203 } else {
204 storage_type = TensorStorageType::TEXTURE_2D;
205 }
206 }
207
208 return storage_type;
209}
210
211Status CreateDefaultEnvironment(Environment* result) {
212 return CreateEnvironment(result, false, 0, 0);

Callers 1

InitializeMethod · 0.85

Calls 2

vendorMethod · 0.80
IsAdreno6xxOrHigherMethod · 0.80

Tested by

no test coverage detected