MCPcopy Create free account
hub / github.com/JDAI-CV/DNNLibrary / Predict

Method Predict

dnnlibrary/Model.cpp:121–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120template <typename T>
121void 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}
126template <typename T>
127void Model::Predict(const std::vector<std::vector<T>> &inputs) {
128 std::vector<T *> input_ptrs;

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected