| 152 | |
| 153 | template<typename T> |
| 154 | bool Decoding<T>::isValidSeqLen(size_t seq_len) |
| 155 | { |
| 156 | if (max_seq_len_ == 0) { |
| 157 | // allocater additional one to put the start token |
| 158 | max_seq_len_ = seq_len + 1; |
| 159 | return true; |
| 160 | } |
| 161 | else { |
| 162 | return seq_len <= max_seq_len_; |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | template<typename T> |
| 167 | bool Decoding<T>::isValidMemSeqLen(size_t seq_len) |
nothing calls this directly
no outgoing calls
no test coverage detected