onnx / backend-scoreboard

Scoreboard for ONNX Backend Compatibility
http://onnx.ai/backend-scoreboard/
Apache License 2.0
27 stars 28 forks source link

fix StringNormalizer test failures for onnxruntime backend #19

Closed jywu-msft closed 4 years ago

jywu-msft commented 4 years ago

There are 12 test failures for onnxruntime backend related to StringNormalizer. The errors show E onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: /onnxruntime_src/onnxruntime/core/pro viders/cpu/nn/string_normalizer.cc:87 onnxruntime::string_normalizer::Locale::Locale(const string&) Failed to construct locale with name:en_US.UTF-8:locale::facet::_S_create_c_locale na me not valid:Please, install necessary language-pack-XX and configure locales

The root cause is the docker image doesn't install and configure locales per onnxruntime README.md

This PR adds the necessary locales installation and configuration. The previously failing tests pass after applying this fix.