SciSharp / TensorFlow.NET

.NET Standard bindings for Google's TensorFlow for developing, training and deploying Machine Learning models in C# and F#.
https://scisharp.github.io/tensorflow-net-docs
Apache License 2.0
3.24k stars 517 forks source link

feat: Support training of RNN and LSTM. #1110

Closed Wanglongzhi2001 closed 1 year ago

Wanglongzhi2001 commented 1 year ago
  1. Support the model building of RNN.
  2. Support the model building of LSTM.
  3. Support the training of RNN.
  4. Support the training of LSTM.
  5. Add test.
  6. Refactor Tensors class to deal with implicit conversion from Tensors to Tensor and support Nest Tensors.
  7. Add Nest class to handle nested Tensor cases, and add corresponding Flatten and Mapstructure API.
  8. Use IOptionalArgs in Layer.Apply to prevent the inconsistency of Call method parameters in different layers, resulting in the need to set too many Call method parameters.
  9. Add the implemention of while_loop in graph mode.
Wanglongzhi2001 commented 1 year ago

It builds on windows successfully, but fails to build on linux. According to the error message, it seems that the problem is on protobuf. Is this matters? @AsakusaRinne

AsakusaRinne commented 1 year ago

It builds on windows successfully, but fails to build on linux. According to the error message, it seems that the problem is on protobuf. Is this matters? @AsakusaRinne

I'll test it on linux later

AsakusaRinne commented 1 year ago

The problem in ci has been located, which will be solved after upgrading the redist packages later.