hasdata
Syntax
Description
returns
tf
= hasdata(mbq
)1
(true
) if mbq
can return a
mini-batch using the next
function,
and 0
(false
) otherwise.
Use hasdata
in combination with next
to
iterate over all data in the minibatchqueue
object. You can call
next
on a minibatchqueue
object until all data is returned.
If mini-batches of data are still available in the minibatchqueue
object,
hasdata
returns 1
. When you reach the end of the
data, hasdata
returns 0
. Then, use reset
or
shuffle
to reset
the minibatchqueue
object and continue obtaining mini-batches with
next
.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2020b