inference.rst: fix doctests

6 jobs for master in 208 minutes and 20 seconds (queued for 2 seconds)