TFSnippet
latest
API Docs
tfsnippet
tfsnippet.dataflows
tfsnippet.datasets
tfsnippet.layers
tfsnippet.ops
tfsnippet.preprocessing
tfsnippet.utils
tfsnippet.utils Package
Functions
Classes
Class Inheritance Diagram
TFSnippet
Docs
»
API Docs
»
tfsnippet.utils
»
minibatch_slices_iterator
Edit on GitHub
minibatch_slices_iterator
¶
tfsnippet.utils.
minibatch_slices_iterator
(
length
,
batch_size
,
skip_incomplete=False
)
¶
Iterate through all the mini-batch slices.
Parameters:
length
(
int
) – Total length of data in an epoch.
batch_size
(
int
) – Size of each mini-batch.
skip_incomplete
(
bool
) – If
True
, discard the final batch if it contains less than
batch_size
number of items. (default
False
)
Yields
slice: Slices of each mini-batch. The last mini-batch may contain
less indices than
batch_size
.
Read the Docs
v: latest
Versions
latest
stable
v0.2.0-alpha1
v0.1.2
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.