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

Function MakeReadonlyTexture

tensorflow/lite/delegates/gpu/gl/object.h:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134inline Object MakeReadonlyTexture(const ObjectSize& size,
135 const std::vector<float>& data) {
136 return Object{AccessType::READ,
137 DataType::FLOAT32,
138 ObjectType::TEXTURE,
139 0,
140 size,
141 internal_object::ToBytesVector(data, 16)};
142}
143
144inline Object MakeReadonlyBuffer(const ObjectSize& size,
145 const std::vector<float>& data) {

Callers 1

TESTFunction · 0.85

Calls 3

ToBytesVectorFunction · 0.85
IntegralDivideRoundUpFunction · 0.50
sizeMethod · 0.45

Tested by 1

TESTFunction · 0.68