MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / resize

Method resize

examples/llava/clip.cpp:204–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202 size_t size = 0;
203
204 void resize(size_t size) {
205 delete[] data;
206 data = new uint8_t[size];
207 this->size = size;
208 }
209
210 ~clip_buffer() { delete[] data; }
211};

Callers 15

mainFunction · 0.45
init_modelFunction · 0.45
init_model_loraFunction · 0.45
load_loraFunction · 0.45
apply_loraFunction · 0.45
export_loraFunction · 0.45
clip_model_loadFunction · 0.45
clip_model_quantizeFunction · 0.45
mainFunction · 0.45
beam_search_callbackFunction · 0.45

Calls

no outgoing calls

Tested by 2

mainFunction · 0.36
test_roundtrip_on_layerFunction · 0.36