Skip to content

Commit c6cb3e6

Browse files
committed
Fixing std::make_shared
1 parent 7859ab2 commit c6cb3e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/ML/src/ort_interface.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void OrtModel::reset(std::unordered_map<std::string, std::string> optionsMap)
145145

146146
void OrtModel::resetSession()
147147
{
148-
(pImplOrt->session).reset(std::make_shared<Ort::Session>(*(pImplOrt->env), modelPath.c_str(), pImplOrt->sessionOptions));
148+
pImplOrt->session = std::make_shared<Ort::Session>(*(pImplOrt->env), modelPath.c_str(), pImplOrt->sessionOptions);
149149
}
150150

151151
template <class I, class O>

0 commit comments

Comments
 (0)