Determine if minibatchqueue can return a mini-batch
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
. You can call
next
on a minibatchqueue
until all data is returned.
If there are still mini-batches of data available in the minibatchqueue
,
hasdata
returns 1
. When you reach the end of the
data, hasdata
returns 0
. Then, use reset
or
shuffle
to reset
the minibatchqueue
and continue obtaining mini-batches with
next
.
minibatchqueue
| next
| reset
| shuffle