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

Function CreateTexture2DRGBA

tensorflow/lite/delegates/gpu/cl/texture2d.cc:110–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110Status CreateTexture2DRGBA(DataType type, int width, int height,
111 CLContext* context, Texture2D* result) {
112 if (type == DataType::FLOAT32) {
113 return CreateTexture2D(width, height, CL_FLOAT, nullptr, context, result);
114 } else {
115 return CreateTexture2D(width, height, CL_HALF_FLOAT, nullptr, context,
116 result);
117 }
118}
119
120Status CreateTexture2DRGBA(DataType type, int width, int height, void* data,
121 CLContext* context, Texture2D* result) {

Callers 6

UploadWeightsMethod · 0.85
UploadWeightsMethod · 0.85
UploadWeightsMethod · 0.85
UploadWeightsMethod · 0.85

Calls 1

CreateTexture2DFunction · 0.85

Tested by

no test coverage detected