onnxruntime
0028d2f4 - Fix CI: install Python callback sink in training module and correct test model I/O names

Commit
22 days ago
Fix CI: install Python callback sink in training module and correct test model I/O names - Extract InstallPythonCallbackLoggingSink() into the shared onnxruntime_pybind_state.cc so both the inference and training pybind entry points install the PythonCallbackSink. The training module's CreateOrtEnv() previously registered set_default_logger_callback (via the shared addGlobalMethods) but never installed the sink, so the API threw 'g_python_callback_sink != nullptr was false' on training builds. - Fix test_set_default_logger_callback to use mul_1.onnx's actual single input 'X' and output 'Y' instead of the nonexistent inputs X/Y and output Z, which caused 'Invalid input name: Y' on macOS/CPU builds.
Author
Parents
Loading