| 6216 | } |
| 6217 | |
| 6218 | static 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 | |
| 6228 | static bool sam3_mark_named_outputs(struct ggml_context * ctx, |
| 6229 | const std::vector<std::string> & output_tensors) { |
no outgoing calls
no test coverage detected