"megatron/legacy/model/t5_model.py" did not exist on "5e079c87fe686e61e7d1a6e912ec547c87c7b1b1"
-
Zakor Gyula authored
The inaccuracy was caused by ONNX round requires nearest integer rounding for halway (0.5) cases. std::round rounds away from zero, thus giving wrong results with halfway cases. Replaced std::round with std::nearbyint which uses the correct rounding by default.
48c4453c