| 1617 | } |
| 1618 | |
| 1619 | void update_act_state( |
| 1620 | resizable_tensor& output, |
| 1621 | const tensor& input_data, |
| 1622 | const tensor& halt_probs, |
| 1623 | resizable_tensor& cumulative_halting, |
| 1624 | resizable_tensor& remainders, |
| 1625 | resizable_tensor& n_steps, |
| 1626 | resizable_tensor& effective_weights, |
| 1627 | long batch_size, |
| 1628 | long seq_len, |
| 1629 | long d_model, |
| 1630 | long num_channels, |
| 1631 | float halt_threshold, |
| 1632 | long current_step |
| 1633 | ) |
| 1634 | { |
| 1635 | IF_DLIB_USE_CUDA( |
| 1636 | cuda::update_act_state(output, input_data, halt_probs, cumulative_halting, remainders, |
| 1637 | n_steps, effective_weights, batch_size, seq_len, d_model, num_channels, halt_threshold, current_step); |
| 1638 | ) |
| 1639 | |
| 1640 | IF_DLIB_NOT_USE_CUDA( |
| 1641 | cpu::update_act_state(output, input_data, halt_probs, cumulative_halting, remainders, |
| 1642 | n_steps, effective_weights, batch_size, seq_len, d_model, num_channels, halt_threshold, current_step); |
| 1643 | ) |
| 1644 | } |
| 1645 | |
| 1646 | void finalize_act_output( |
| 1647 | resizable_tensor& output, |
nothing calls this directly
no outgoing calls
no test coverage detected