Collatable

public protocol Collatable

Types whose elements can be collated in some higher-rank element of the same type (example: tensors, tuple of tensors)

  • Declaration

    init<BatchSamples: Collection>(collating: BatchSamples)
    where BatchSamples.Element == Self