| 23 | |
| 24 | template <class T> |
| 25 | inline |
| 26 | boost::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 | |
| 35 | int beam_decode(at::Tensor th_probs, |
| 36 | at::Tensor th_seq_lens, |
nothing calls this directly
no outgoing calls
no test coverage detected