class MXNet::Gluon::Data::SequentialSampler

Overview

Samples elements from [0, size) sequentially.

Defined in:

mxnet/gluon/data/sampler.cr

Constructors

Instance Method Summary

Instance methods inherited from class MXNet::Gluon::Data::Sampler(Int32)

each(&block : T -> _)
each
each
, size size

Constructor Detail

def self.new(size : Int32) #

Creates a new instance.

Parameters

  • size (Int32) Size of the sequence.

[View source]

Instance Method Detail

def each(&) #
Description copied from module Enumerable(Int32)

Must yield this collection's elements to the block.


[View source]
def each #

[View source]
def size : Int32 #
Description copied from module Enumerable(Int32)

Returns the number of elements in the collection.

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

[View source]