Skip to content

GlorotUniform Initializer unseeded #2086

Description

@scout792

When running the "Inverse problem for the Lorenz system with exogenous input" example file, I get a warning about the GlorotUniform Initializer being unseeded.

/usr/local/lib/python3.12/dist-packages/tf_keras/src/initializers/initializers.py:121: UserWarning: The initializer GlorotUniform is unseeded and being called multiple times, which will return identical values each time (even if the initializer is unseeded). Please update your code to provide a seed to the initializer, or avoid using the same initializer instance more than once.

I plan to run an ablation study on a different inverse problem; however, I'd ensure I can run the same model with different seeds for that study.

I have added "dde.config.set_random_seed(101)" to the code immediately before the model.compile line. However, I get the same exact results for every run, regardless of the seed I use.

I am using the TensorFlow backend and am working in a google colab environment.

TensorFlow version: 2.20.0
TensorFlow Probability version: 0.25.0
Keras version: 2.20.0
DeepXDE version: 1.15.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions