Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Added Inverse Square Root Linear Unit (ISRLU) activation layer #456

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

SriRangaTarun
Copy link
Contributor

Please make sure you've read and understood our contributing guidelines;
https://github.com/keras-team/keras-contrib/blob/master/CONTRIBUTING.md
-->

- What I did
See above. Here's the axrXiv paper.

- How I did it

- How you can verify it
I added unit tests.


This pull request fixes #issue_number_here

@SriRangaTarun
Copy link
Contributor Author

SriRangaTarun commented Feb 14, 2019

@RaphaelMeudec This is the new ISRLU PR. I have made all the changes you suggested when you reviewed the old one.

Copy link
Contributor

@RaphaelMeudec RaphaelMeudec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SriRangaTarun Nice!

@gabrieldemarmiesse This feature can also be merged

@SriRangaTarun
Copy link
Contributor Author

SriRangaTarun commented Feb 16, 2019

@RaphaelMeudec and @gabrieldemarmiesse I have merged the tf.keras pull request into my branch and am trying to make ISRLU tf.keras compatible. The PSEU layer is now tf.keras compatible.

@SriRangaTarun
Copy link
Contributor Author

@RaphaelMeudec and @gabrieldemarmiesse The build is now passing and the layer is tf.keras compatible.

Copy link
Contributor

@RaphaelMeudec RaphaelMeudec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SriRangaTarun Same notes for this PR!

self.trainable = False

if is_tf_keras:
def alpha_initializer(self, input_shape, dtype='float32', partition_info=None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as the other PR, partition_info is not used and is_tf_keras if loop can be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RaphaelMeudec The initializer does not work in tf.keras without the partition_info argument.

Copy link
Contributor Author

@SriRangaTarun SriRangaTarun Mar 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gabrieldemarmiesse Added **kwargs

@SriRangaTarun
Copy link
Contributor Author

@fchollet It would be great if you or someone else from your team can review this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants