Revert "Make default throw exception on abort for python (#333)"

This reverts commit 97bd6e36db.

As discussed, we need messages for debugging in -fno-exceptions.
This commit is contained in:
Kenneth Heafield 2022-02-05 17:26:16 +00:00
parent 97bd6e36db
commit 62ff781ed4

View File

@ -33,10 +33,7 @@ PYBIND11_MAKE_OPAQUE(Alignments);
class ServicePyAdapter {
public:
ServicePyAdapter(const Service::Config &config) : service_(make_service(config)) {
// Set marian to throw exceptions instead of std::abort()
marian::setThrowExceptionOnAbort(true);
}
ServicePyAdapter(const Service::Config &config) : service_(make_service(config)) {}
std::shared_ptr<_Model> modelFromConfig(const std::string &config) {
auto parsedConfig = marian::bergamot::parseOptionsFromString(config);