mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 05:35:33 +03:00
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:
parent
97bd6e36db
commit
62ff781ed4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user