feat: add rnn basic modules by SanftMonster · Pull Request #1097 · SciSharp/TensorFlow.NET · GitHub
Skip to content

feat: add rnn basic modules#1097

Merged
SanftMonster merged 3 commits intoSciSharp:rnn-devfrom
SanftMonster:rnn-dev
Jun 7, 2023
Merged

feat: add rnn basic modules#1097
SanftMonster merged 3 commits intoSciSharp:rnn-devfrom
SanftMonster:rnn-dev

Conversation

@SanftMonster
Copy link
Copy Markdown
Collaborator

  1. Refactor Tensors to make it support nested structure.
  2. Add Nest<T> and INestStructure<T> to enable better use of nest structures.
  3. Add basic RNN modules.
  4. Revise the implementation of TensorArray.

Note:
The ILayer.Call needs to be fully refactored in the future.

@DevNullx64 This PR partially refactors the Tensors, which is mentioned in #1088 . Please feel free to comment anything about that :). Since the target branch is a dev branch, this PR will be merged at once. But if there's disadvantages you catch, we could improve it before merging to master branch.

In this PR the implicit conversion from Tensors to Tensor is still kept because the main purpose of this PR is to support RNN. However I add a check when doing this implicit conversion. If a Tensors has more than one Tensor, then an exception will be thrown. In this way, some error will be visiable.

@SanftMonster SanftMonster requested a review from Oceania2018 as a code owner June 7, 2023 00:22
@SanftMonster SanftMonster merged commit 9da157f into SciSharp:rnn-dev Jun 7, 2023
@DevNullx64
Copy link
Copy Markdown
Contributor

DevNullx64 commented Jun 7, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants