lululxvi / deepxde

A library for scientific machine learning and physics-informed learning
https://deepxde.readthedocs.io
GNU Lesser General Public License v2.1
2.63k stars 739 forks source link

[Update] Update regularizers so it is backwards compatabile #1783

Closed agniv-the-marker closed 3 months ago

agniv-the-marker commented 3 months ago

Regularizers supported in tf v2.2.0:

image

Keeping it like this (lowercase and without explicitly calling the argument name) maintains backwards compatibility and doesn't need to be upgraded to tf v2.3.0 and up.

agniv-the-marker commented 3 months ago

Note #1784 renders this PR not useful, although this one has more backwards compatibility with TF 2.2.0 versions.