Structure
Embedding
public struct Embedding: TrainableLayer
Relationships
Conforms To
TrainableLayer
Initializers
init(name:input:output:weight:inputDim:outputChannels:)
public init(name: String, input: [String], output: [String], weight: [Float], inputDim: UInt, outputChannels: UInt)
Properties
type
let type
name
let name: String
input
let input: [String]
output
let output: [String]
inputDim
let inputDim: UInt
outputChannels
let outputChannels: UInt
weight
let weight: [Float]
bias
let bias: [Float]