Attend the Women in ML Symposium on December 7 Register now

DatasetIterator

Stay organized with collections Save and categorize content based on your preferences.
@available(*, deprecated)
@frozen
public struct DatasetIterator<Element> where Element : TensorGroup
extension DatasetIterator: IteratorProtocol

The type that allows iteration over a dataset’s elements.

  • Advances to the next element and returns it, or nil if no next element exists.

    Declaration

    public mutating mutating func next() -> Element?