question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Tanh shrink activation function

See original GitHub issue

The TanhShrinkactivation function is missed in KotlinDL.

The desired PR addressing this issue should include:

  • Implementation of activation class named as TanhShrinkActivation (you can take inspiration from the implementation of HardSigmoid as reference) added to the Activations.kt file
  • Documentation of activation function
  • JUnit tests in api module
  • Support for export of activation function to JSON (see ModelSaver.kt)
  • Support for import of activation function from JSON (see ModelLoader.kt)

P.S. If you want to take this ticket, please leave the comment below P.P.S Read the Contributing Guidelines.

The reference implementation could be taken from tensorflow-addons

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
femialakacommented, Aug 17, 2021

@zaleslaw sure, its Big Sur version 11.5.2 (M1 2020), I’ll try another machine then and get back to you.

1reaction
femialakacommented, Aug 16, 2021

I would like to work on this one, can you please send me a slack invite so I can discuss a few things, thanks in advance.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tanhshrink Activation Function - GM-RKB
A Tanhshrink Activation Function is a Hyperbolic Tangent-based Activation Function that is defined as [math] f(x)=x-Tanh(x)[/math]. Context:.
Read more >
Addition of hardtanh and tanhshrink activation functions #2228
Hey everyone, I was thinking we have tanh activation function so why not add hardtanh annd tanhshrink functions too.
Read more >
BNNS.ActivationFunction.tanhShrink - Apple Developer
An activation function that returns its input clamped to beta when that is greater than or equal to zero, otherwise it returns its...
Read more >
Why is tanh almost always better than sigmoid as an activation ...
This makes the tanh function almost always better as an activation function (for hidden layers) rather than the sigmoid function.
Read more >
What is PyTorch tanh with Examples? - eduCBA
Tanh Activation Function Benefits​​ It could be used to convert the outputs of a neuron to a negative number because its output varies...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found