Inputs for Optional Batching #
The input precedes the defaulted batch flag in training and loss functions. These instances give
sample literals their expected type once the flag is selected, without coercing or copying data.
instance
TorchLean.Internal.instBatchInputFalse
{single many : Type}
:
BatchInput single many false single
instance
TorchLean.Internal.instBatchInputTrue
{single many : Type}
:
BatchInput single many true many