Closed AsakusaRinne closed 1 year ago
Quite not sure, but I think that by adding some class or interface, Nest
I hope to don't borring you to many, I will help you if you want.
After that, you've done a lot of work :) ! I'm loking for this pull.
Ho ! Before I forgot ! Well handling for Tensors to Tensor. it's verry helpfull for debuging :)
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.