8000 fix: predict with multiple outputs · DevNullx64/TensorFlow.NET@93cd2b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 93cd2b6

Browse files
committed
fix: predict with multiple outputs
1 parent 89f3b23 commit 93cd2b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TensorFlowNET.Keras/Engine/Model.Predict.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Tensors PredictInternal(DataHandler data_handler, int verbose)
8484
Steps = data_handler.Inferredsteps
8585
});
8686

87-
Tensor batch_outputs = null;
87+
Tensors batch_outputs = null;
8888
_predict_counter.assign(0);
8989
callbacks.on_predict_begin();
9090
foreach (var (epoch, iterator) in data_handler.enumerate_epochs())
@@ -95,7 +95,7 @@ Tensors PredictInternal(DataHandler data_handler, int verbose)
9595
var tmp_batch_outputs = run_predict_step(iterator);
9696
if (batch_outputs == null)
9797
{
98-
batch_outputs = tmp_batch_outputs[0];
98+
batch_outputs = tmp_batch_outputs;
9999
}
100100
else
101101
{

0 commit comments

Comments
 (0)
0