Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenNMT/CTranslate2
/ assert_model_is_ready
Method
assert_model_is_ready
python/cpp/replica_pool.h:190–193 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
188
}
189
190
void assert_model_is_ready() const {
191
if (!_model_is_loaded)
192
throw std::runtime_error(
"The model for this translator was unloaded"
);
193
}
194
};
195
196
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected