Browse Source

Fix IO Exception from keras.fit.

tags/v0.100.4-load-saved-model
AsakusaRinne Haiping 2 years ago
parent
commit
10f66f0baf
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/TensorFlowNET.Keras/Engine/Model.Fit.cs

+ 4
- 1
src/TensorFlowNET.Keras/Engine/Model.Fit.cs View File

@@ -137,7 +137,10 @@ namespace Tensorflow.Keras.Engine
remaining += ".";

Binding.tf_output_redirect.Write($"{step + 1:D4}/{data_handler.Inferredsteps:D4} [{progress}{remaining}] - {elapse}ms/step {result_pairs}");
Console.CursorLeft = 0;
if (!Console.IsOutputRedirected)
{
Console.CursorLeft = 0;
}
}
}
}


Loading…
Cancel
Save