| 119 | |
| 120 | template <typename T> |
| 121 | void Model::Predict(const std::vector<T> &input) { |
| 122 | DNN_ASSERT_EQ(input.size(), GetSize(GetInputs()[0])); |
| 123 | // const_cast is a ugly workaround, vector<const T*> causes strange errors |
| 124 | Predict<T>({const_cast<T *>(input.data())}); |
| 125 | } |
| 126 | template <typename T> |
| 127 | void Model::Predict(const std::vector<std::vector<T>> &inputs) { |
| 128 | std::vector<T *> input_ptrs; |