Attend the Women in ML Symposium on December 7 Register now


Stay organized with collections Save and categorize content based on your preferences.
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