MCPcopy Create free account
hub / github.com/binbinjiang/CVT-SLR / std_vector_to_py_list

Function std_vector_to_py_list

ctcdecode/ctcdecode/src/binding.cpp:25–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24template <class T>
25inline
26boost::python::list std_vector_to_py_list(std::vector<T> vector) {
27 typename std::vector<T>::iterator iter;
28 boost::python::list list;
29 for (iter = vector.begin(); iter != vector.end(); ++iter) {
30 list.append(*iter);
31 }
32 return list;
33}
34
35int beam_decode(at::Tensor th_probs,
36 at::Tensor th_seq_lens,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected