Save the date! Google I/O returns May 18-20 Register now

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