Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void zd_early_exit(in_buff_id, cen_ptr, att_ptr, th_ptr, return_task_pointer, state, task_id)
- {
- // att_ptr is the index of the k top features
- input_buff_ptr = get_buffer(in_buff_id)
- Uint16_t decision = kmeans(input_buff_ptr, cen_ptr, att_ptr)
- if(dec == -1)
- {
- scratch_bak[0] = state+1;
- write_to_gbuf((uint8_t *)(scratch_bak),
- (uint8_t *)(CUR_SCRATCH), sizeof(uint16_t))
- TRANSITION_TO(return_task_pointer)
- }
- else
- {
- update_2_optional(task_id)
- TRANSITION_TO(task_scheduler)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement