SummaryWriter

@available(*, deprecated, message: "Use DL4S-Tensorboard (https://github.com/palle-k/DL4S-Tensorboard﹚ instead")
public class SummaryWriter

Writes a summary of a training procedure to a CSV file.

  • Writes a summary of a training procedure to a CSV file. The CSV file will be stored in a folder named runName relative to the given destination URL.

    Declaration

    Swift

    public init(destination: URL, runName: String) throws

    Parameters

    destination

    Destination URL to store the run directory in

    runName

    Name of the run directory.

  • Writes a scalar with the given name into the summary

    Declaration

    Swift

    public func write<Scalar>(_ scalar: Scalar, named name: String, at iteration: Int) where Scalar : NumericType

    Parameters

    scalar

    Scalar value

    name

    Name of the scalar

    iteration

    Training iteration, at which the scalar was captured.