This repository has been archived by the owner on Jul 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The existing `RNNCell` protocol and `RNNInput` type are not flexible in that each time step has the take both the previous output and the hidden state. This PR lifts that restriction. * Rename `RNNInput` to `RNNCellInput` so that it's more accurate. * Add a new `RNNCellOutput` generic structure type that stores an output and a state. * Add associated type `State` in `RNNCell`. * Make the `Output` type of `RNNCell` be `RNNOutput<TimeStepOutput, State>`. Thanks @superbobry for the suggestions.
- Loading branch information
Showing
1 changed file
with
32 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters