SwiftenumNeuralNetworks

enum NeuralNetworks.FeatureInputType

Members 9

  1. funcstatic bgrImage(size: (height: Int, width: Int), channelsFirst: Bool) -> NeuralNetworks.FeatureInputType
  2. funcstatic grayScaleImage(size: (height: Int, width: Int), channelsFirst: Bool) -> NeuralNetworks.FeatureInputType
  3. funcstatic rgbImage(size: (height: Int, width: Int), channelsFirst: Bool) -> NeuralNetworks.FeatureInputType
  4. funcstatic tensor(like: NeuralNetworks.Tensor) -> NeuralNetworks.FeatureInputType
  5. funcstatic tensor(shape: NeuralNetworks.TensorShape, scalarType: NeuralNetworks.ScalarType) -> NeuralNetworks.FeatureInputType
  6. funcstatic tensor(shape: NeuralNetworks.TensorShape, scalarType: NeuralNetworks.TensorScalar.Type) -> NeuralNetworks.FeatureInputType
  7. funcstatic tensor(NeuralNetworks.Tensor) -> NeuralNetworks.FeatureInputType
  8. casecase image(size: (height: Int, width: Int), colorLayout: NeuralNetworks.FeatureInputType.ColorLayout, channelsFirst: Bool)
  9. casecase tensor(NeuralNetworks.FeatureInputType.TensorValueRepresentation)
enum FeatureInputType {
    enum ColorLayout {
        case rgb
        case bgr
        case grayscale
    }
    enum TensorValueRepresentation {
        case inputPlaceholder(shape: NeuralNetworks.TensorShape, scalarType: NeuralNetworks.ScalarType)
        case placeholder(shape: NeuralNetworks.TensorShape, scalarType: any NeuralNetworks.TensorScalar.Type)
        case concrete(NeuralNetworks.Tensor)
    }
    case tensor(NeuralNetworks.FeatureInputType.TensorValueRepresentation)
    case image(size: (height: Swift.Int, width: Swift.Int), colorLayout: NeuralNetworks.FeatureInputType.ColorLayout, channelsFirst: Swift.Bool)

    static func grayScaleImage(size: (height: Swift.Int, width: Swift.Int), channelsFirst: Swift.Bool) -> NeuralNetworks.FeatureInputType
    static func tensor(like: NeuralNetworks.Tensor) -> NeuralNetworks.FeatureInputType
    static func tensor(shape: NeuralNetworks.TensorShape, scalarType: NeuralNetworks.ScalarType) -> NeuralNetworks.FeatureInputType
    static func tensor(shape: NeuralNetworks.TensorShape, scalarType: any NeuralNetworks.TensorScalar.Type) -> NeuralNetworks.FeatureInputType
    static func tensor(_: NeuralNetworks.Tensor) -> NeuralNetworks.FeatureInputType
    static func bgrImage(size: (height: Swift.Int, width: Swift.Int), channelsFirst: Swift.Bool) -> NeuralNetworks.FeatureInputType
    static func rgbImage(size: (height: Swift.Int, width: Swift.Int), channelsFirst: Swift.Bool) -> NeuralNetworks.FeatureInputType
}