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.2k stars 514 forks source link

fix: error when set the activation of keras.layers.Conv2DTranspose to null. #1076

Closed lingbai-kong closed 1 year ago

lingbai-kong commented 1 year ago

Solve 1st problem of #1012

The bug is caused by the unchecked variable in GetActivationFromName().

In original TensorFlow, the corresponding method just returns the 'linear' function when encountering this null situation.

I solved the problem in their way.

Thanks!

Oceania2018 commented 1 year ago

Thanks for your contribution, keep it up!