class MXNet::Gluon::Data::LazyTransformDataset(T, U)

Overview

Lazily transformed Dataset wrapper for arrays and other classes that implement Indexable.

Defined in:

mxnet/gluon/data/dataset.cr

Constructors

Instance Method Summary

Instance methods inherited from class MXNet::Gluon::Data::Dataset(U)

size size, transform(lazy = true, &proc : T -> U) forall U transform, unsafe_fetch(idx) unsafe_fetch

Constructor Detail

def self.new(dataset : Indexable(T), &proc : T -> U) #

Creates a new instance.

Parameters

  • dataset (Indexable) Any indexable object.

[View source]

Instance Method Detail

def size #
Description copied from module Indexable(U)

Returns the number of elements in this container.


[View source]
def unsafe_fetch(idx) #

[View source]