MCPcopy Create free account
hub / github.com/PABannier/sam3.cpp / sam3_clear_encoder_state

Function sam3_clear_encoder_state

sam3.cpp:6218–6226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6216}
6217
6218static void sam3_clear_encoder_state(sam3_state & state) {
6219 state.vit_output = nullptr;
6220 for (int i = 0; i < 4; ++i) {
6221 state.neck_det[i] = nullptr;
6222 state.neck_trk[i] = nullptr;
6223 state.neck_det_pe[i] = nullptr;
6224 state.neck_trk_pe[i] = nullptr;
6225 }
6226}
6227
6228static bool sam3_mark_named_outputs(struct ggml_context * ctx,
6229 const std::vector<std::string> & output_tensors) {

Calls

no outgoing calls

Tested by

no test coverage detected