abstract class MXNet::Gluon::Data::Sampler(T)

Overview

Base class for samplers.

All samplers should subclass Sampler and define #size and #each methods.

Included Modules

Direct Known Subclasses

Defined in:

mxnet/gluon/data/sampler.cr

Instance Method Summary

Instance Method Detail

abstract def each(&block : T -> _) #
Description copied from module Enumerable(T)

Must yield this collection's elements to the block.


[View source]
abstract def each #

[View source]
abstract def size #
Description copied from module Enumerable(T)

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4

[View source]