IO

public class IO : ModelIOConvertible

A IO class represent the abstract input / output for a model. It can correspond to one or more tensors when the model is materialized.

  • io

    Declaration

    Swift

    public var io: IO { get }
  • Add non-functional dependencies between IOs. Normally, dependencies are inferred by usage. However, in some cases you want to hack the dependency such that two unrelated ops can establish a dependency. This is useful to enforce system to share memory for example.

    Declaration

    Swift

    public func add(dependencies: [Model.IO])

    Parameters

    dependencies

    The IOs which will be the dependencies of the current IO.