tensorflow / addons

Useful extra functionality for TensorFlow 2.x maintained by SIG-addons
Apache License 2.0
1.69k stars 610 forks source link

Update spectral_radius in esn_cell.py #2793

Closed muriloasouza closed 1 year ago

muriloasouza commented 1 year ago

Change self.spectral_radius for tf.cast(self.spectral_radius, dtype) in lines 146 and 152.

Description

Change the spectral radius of esn_cell.py. More info in the following link:

https://github.com/tensorflow/addons/issues/2792

@bhack

Fixes # (issue)

Type of change

Checklist:

How Has This Been Tested?

Tested in the following code:

https://gist.github.com/muriloasouza/6b928d762fbbd2f748c68bc99eaf8382

Before this change, the code didn't work.

Heres the csv file:

https://gist.github.com/muriloasouza/5f97167faf7a066cf2ad2858fbd4b1f5

google-cla[bot] commented 1 year ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

bot-of-gabrieldemarmiesse commented 1 year ago

@pedrolarben

You are owner of some files modified in this pull request. Would you kindly review the changes whenever you have the time to? Thank you very much.