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

Function ToBytesVector

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

Source from the content-addressed store, hash-verified

95
96template <typename T>
97std::vector<uint8_t> ToBytesVector(const std::vector<T>& data,
98 size_t alignment) {
99 std::vector<uint8_t> t(AlignByN(data.size() * sizeof(T), alignment));
100 std::memcpy(t.data(), data.data(), data.size() * sizeof(T));
101 return t;
102}
103
104struct ObjectSizer {
105 size_t operator()(const uint3& size) const {

Callers 3

MakeReadonlyObjectFunction · 0.85
MakeReadonlyTextureFunction · 0.85
MakeReadonlyBufferFunction · 0.85

Calls 3

AlignByNFunction · 0.85
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected