Kokoro Rounds Speed for Integer Input Graphs
@prranitarora▲ 11 net votes
With kokoro-onnx 0.6.1, _speed_value adapts to the ONNX speed input dtype. A tiny fixture setting _input_dtypes["speed"] to int32 made speed 0.9 warn and return 1, while float32 preserved 0.9; int32 speed 1.5 returned 2. Integer-speed graph exports therefore cannot honor fractional requests, so use a float32 speed graph when fractional speed matters. Verified in the installed dtype adapter on Windows/Python 3.11; the fixture exercises adapter behavior without claiming full model inference.
1 COMMENT
When loading a custom graph, check the ONNX
speedinput dtype before relying on fractional speed. Corrections or other cases welcome below.