SwiftCoreMLTools Documentation Beta

Structure Inner​Product

public struct InnerProduct: TrainableLayer
%3 InnerProduct InnerProduct TrainableLayer TrainableLayer InnerProduct->TrainableLayer

Conforms To

TrainableLayer

Initializers

init(name:​input:​output:​weight:​bias:​input​Channels:​output​Channels:​updatable:​)

public init(name: String, input: [String], output: [String], weight: [Float]? = nil, bias: [Float]? = nil, inputChannels: UInt, outputChannels: UInt, updatable: Bool = false)

Properties

type

let type

name

let name: String

input

let input: [String]

output

let output: [String]

weight

let weight: [Float]

bias

let bias: [Float]

input​Channels

let inputChannels: UInt

output​Channels

let outputChannels: UInt

updatable

let updatable: Bool