-
Undocumented
Declaration
Swift
associatedtype State where Self.Outputs == (Self.State, () -> Self.StateSequence) -
Undocumented
Declaration
Swift
associatedtype StateSequence -
Undocumented
Declaration
Swift
associatedtype PreparedInput -
Undocumented
Declaration
Swift
associatedtype StepInput -
Undocumented
Declaration
Swift
var direction: RNNDirection { get } -
Number of steps to perform given the inputs of the RNN
Declaration
Swift
func numberOfSteps(for inputs: Inputs) -> IntParameters
inputsInputs of the RNN
-
Creates the initial state of the RNN for processing the given sequence
Declaration
Swift
func initialState(for inputs: Inputs) -> StateParameters
inputsSequence to process
-
Performs the input transformation on all timesteps of the input at once
Declaration
Swift
func prepare(inputs: Inputs) -> PreparedInputParameters
inputsSequence to process
-
Concatenates the given array of states into a state sequence
Declaration
Swift
func concatenate(_ states: [State]) -> StateSequenceParameters
statesStates to concatenate
-
Extracts the inputs of the RNN at a given timestep from the preprocessed input sequence
Declaration
Swift
func input(at step: Int, using preparedInput: PreparedInput) -> StepInputParameters
stepTimestep
preparedInputPrepared input sequence
-
callAsFunction(_:Default implementationstate: ) Applies the RNN to the given input sequence using the provided initial state
Default Implementation
Declaration
Swift
func callAsFunction(_ inputs: Inputs, state: State?) -> (State, () -> StateSequence)Parameters
inputsInput sequence
stateInitial state, optional
-
callAsFunction(_:Extension method) Declaration
Swift
public func callAsFunction(_ inputs: Inputs) -> Outputs
View on GitHub
RNN Protocol Reference