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

Method updateSessionToModel

source/core/Interpreter.cpp:603–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

601 return std::make_pair(mNet->buffer.get(), mNet->buffer.size());
602}
603ErrorCode Interpreter::updateSessionToModel(Session* session) {
604 std::unique_lock<std::mutex> _l(mNet->lock);
605 if (mNet->buffer.get() == nullptr) {
606 MNN_ERROR("Can't updateSessionToModel because you called releaseModel before\n");
607 return INPUT_DATA_ERROR;
608 }
609 return session->updateToModel((Net*)mNet->net);
610}
611
612const char* Interpreter::getModelVersion() const {
613 if (mNet && mNet->net && mNet->net->extraInfo() && mNet->net->extraInfo()->version()) {

Callers 2

mainFunction · 0.80

Calls 2

updateToModelMethod · 0.80
getMethod · 0.45

Tested by 1

mainFunction · 0.64