TensorFlow.NET icon indicating copy to clipboard operation
TensorFlow.NET copied to clipboard

Model.predict output refreshes at each step

Open MKhaeS opened this issue 4 years ago • 1 comments

https://github.com/SciSharp/TensorFlow.NET/blob/56b4b189828c88bcf1697b04a15beee932a41e50/src/TensorFlowNET.Keras/Engine/Model.Predict.cs#L58

The output variable here gets reasssigned at each step in the cycle. The following fix worked for me: outputs = outputs is null ? batch_outputs : tf.concat(new Tensor[] { outputs, batch_outputs }, 0);

MKhaeS avatar Apr 04 '22 16:04 MKhaeS

Please try latest release.

Oceania2018 avatar Jan 31 '23 02:01 Oceania2018