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.crConstructors
-
.new(dataset : Indexable(T), &proc : T -> U)
Creates a new instance.
Instance Method Summary
-
#size
Returns the number of elements in this container.
- #unsafe_fetch(idx)
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)
#
Instance Method Detail
def size
#
Description copied from module Indexable(U)
Returns the number of elements in this container.