#keras question - what's the difference between model(test) and model.predict(test)?
@fchollet #TensorFlow
-
-
Replying to @davidADSP
model() is like a layer call -- in-memory, single-batch, differentiable. Its input and output are tensors. Meanwhile, model.predict() is batched, not differentiable, and may be distributed. Its input may be a Dataset. Its output is a NumPy array.
2 replies 4 retweets 47 likes -
Replying to @fchollet @davidADSP
Roughly, `predict()` is a `for` loop over the data provided, doing efficient (maybe distributed) inference for each batch, and packing the results into a NumPy array.
1 reply 0 retweets 1 like -
Replying to @fchollet @davidADSP
Is predict() batched when input contains numpy arrays instead of http://tf.data .Dataset?
1 reply 0 retweets 0 likes
Replying to @_joaolage @davidADSP
Yes, it is always batched and you can configure the batch size
12:14 PM - 3 Aug 2020
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.