Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Tensors
to make it support nested structure.Nest<T>
andINestStructure<T>
to enable better use of nest structures.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
toTensor
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 aTensors
has more than oneTensor
, then an exception will be thrown. In this way, some error will be visiable.