Advertisement
Guest User

exit

a guest
Feb 26th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.60 KB | None | 0 0
  1. void zd_early_exit(in_buff_id, cen_ptr, att_ptr, th_ptr, return_task_pointer, state, task_id)
  2. {
  3.     // att_ptr is the index of the k top features
  4.     input_buff_ptr = get_buffer(in_buff_id)
  5.     Uint16_t decision = kmeans(input_buff_ptr, cen_ptr, att_ptr)
  6.         if(dec == -1)
  7.         {
  8.             scratch_bak[0] = state+1;
  9.             write_to_gbuf((uint8_t *)(scratch_bak),
  10.                 (uint8_t *)(CUR_SCRATCH), sizeof(uint16_t))
  11.             TRANSITION_TO(return_task_pointer)
  12.         }
  13.         else
  14.         {
  15.             update_2_optional(task_id)
  16.             TRANSITION_TO(task_scheduler)
  17.         }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement