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

Method GetSupportedStorages

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

Source from the content-addressed store, hash-verified

185}
186
187std::vector<TensorStorageType> Environment::GetSupportedStorages() const {
188 std::vector<TensorStorageType> storage_types = {TensorStorageType::TEXTURE_2D,
189 TensorStorageType::BUFFER};
190 if (device_.SupportsTextureArray()) {
191 storage_types.push_back(TensorStorageType::TEXTURE_ARRAY);
192 }
193 return storage_types;
194}
195
196TensorStorageType GetOptimalStorageType(const CLDevice& gpu) {
197 TensorStorageType storage_type;

Callers 15

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

SupportsTextureArrayMethod · 0.80
push_backMethod · 0.45

Tested by 15

TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64