| 102 | |
| 103 | template<typename T> |
| 104 | bool Decoder<T>::isValidBatchSize(size_t batch_size) |
| 105 | { |
| 106 | if (max_batch_size_ == 0) { |
| 107 | max_batch_size_ = batch_size; |
| 108 | return true; |
| 109 | } |
| 110 | else { |
| 111 | return batch_size <= max_batch_size_; |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | template<typename T> |
| 116 | Decoder<T>::Decoder(size_t max_batch_size, |
nothing calls this directly
no outgoing calls
no test coverage detected