MCPcopy Create free account
hub / github.com/alibaba/MNN / input

Method input

test/model/MobileNetTest.cpp:81–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 void input(Session* session, std::string file) {
82 auto input = session->getInput(NULL);
83 auto given = tensorFromFile(input, file);
84 input->copyFromHostTensor(given.get());
85 }
86
87 virtual bool run(int precision) {
88 auto net = MNN::Interpreter::createFromFile(this->model().c_str());

Callers 2

runMethod · 0.95
unetMethod · 0.45

Calls 3

copyFromHostTensorMethod · 0.80
getInputMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected