TorchLean Public Samples #
Public sample types and constructors for supervised datasets.
A supervised sample (x, y) with input shape σ and target shape τ.
Instances For
A fixed-size minibatch of supervised samples.
Instances For
Build a supervised sample (x, y).
Instances For
Build a batched supervised sample (xBatch, yBatch).
Instances For
Extract the input tensor x from a supervised sample.
Instances For
Extract the target tensor y from a supervised sample.
Instances For
Unpack a supervised sample as the ordinary pair (x, y).
Instances For
Map a function over the input tensor x, leaving the target y unchanged.
Instances For
Map a function over the target tensor y, leaving the input x unchanged.
Instances For
Map functions over both x and y in a supervised sample.
Instances For
Repeat one supervised sample across a fixed batch axis.
Use this for examples that naturally produce one (x, y) pair but need a model whose input/output
shapes already include a batch dimension.
Instances For
A length-1 tensor, casting host Float into the selected runtime scalar.
Instances For
A length-2 tensor, casting host Float coordinates into the selected runtime scalar.