| 1596 | // ---------------------------------------------------------------------------------------- |
| 1597 | |
| 1598 | void compute_act_halt_probabilities( |
| 1599 | resizable_tensor& halt_probs, |
| 1600 | resizable_tensor& logits, |
| 1601 | const tensor& input_data, |
| 1602 | const tensor& halt_params, |
| 1603 | long batch_size, |
| 1604 | long seq_len, |
| 1605 | long feature_dim |
| 1606 | ) |
| 1607 | { |
| 1608 | IF_DLIB_USE_CUDA( |
| 1609 | cuda::compute_act_halt_probabilities(halt_probs, logits, input_data, halt_params, |
| 1610 | batch_size, seq_len, feature_dim); |
| 1611 | ) |
| 1612 | |
| 1613 | IF_DLIB_NOT_USE_CUDA( |
| 1614 | cpu::compute_act_halt_probabilities(halt_probs, logits, input_data, halt_params, |
| 1615 | batch_size, seq_len, feature_dim); |
| 1616 | ) |
| 1617 | } |
| 1618 | |
| 1619 | void update_act_state( |
| 1620 | resizable_tensor& output, |
nothing calls this directly
no outgoing calls
no test coverage detected