MCPcopy Create free account
hub / github.com/davisking/dlib / update_act_state

Function update_act_state

dlib/cuda/tensor_tools.cpp:1619–1644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected