abstract class MXNet::Gluon::Data::Sampler(T)
- MXNet::Gluon::Data::Sampler(T)
- Reference
- Object
Overview
Base class for samplers.
All samplers should subclass Sampler
and define #size
and
#each
methods.
Included Modules
- Enumerable(T)
Direct Known Subclasses
- MXNet::Gluon::Data::BatchSampler(T)
- MXNet::Gluon::Data::RandomSampler
- MXNet::Gluon::Data::SequentialSampler
Defined in:
mxnet/gluon/data/sampler.crInstance Method Summary
-
#each(&block : T -> _)
Must yield this collection's elements to the block.
- #each
-
#size
Returns the number of elements in the collection.
Instance Method Detail
abstract
def each(&block : T -> _)
#
Description copied from module Enumerable(T)
Must yield this collection's elements to the block.
abstract
def size
#
Description copied from module Enumerable(T)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4