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

Function compute_act_halt_probabilities

dlib/cuda/tensor_tools.cpp:1598–1617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected