MO: Flush after dumping the arguments to stdout (#570)
authorRoman Donchenko <roman.donchenko@intel.com>
Tue, 26 May 2020 04:44:25 +0000 (07:44 +0300)
committerGitHub <noreply@github.com>
Tue, 26 May 2020 04:44:25 +0000 (07:44 +0300)
commite835a4cf58a69d107f3162dc83d7de192efbf8e4
tree59df8737aa48b64a40b09d316d4c9f00c4e0865c
parentd3923f2ce0c6725092883ac61cac9bc307944040
MO: Flush after dumping the arguments to stdout (#570)

When stdout is not a terminal, Python will buffer it by default. This
means that a consumer of MO's output will not see the argument information
until the buffer is flushed, which will normally only happen once MO
finishes (which might take a while).

Flushing stdout explicitly allows the consumer to see this info as soon
as it's printed.
model-optimizer/mo/main.py