GithubHelp home page GithubHelp logo

Comments (5)

dustinvtran avatar dustinvtran commented on May 18, 2024

@jereliu

Hi @batzner! Were you able to resolve this?

from uncertainty-baselines.

batzner avatar batzner commented on May 18, 2024

Unfortunately, I was not able to resolve this. I saw in GitHub issues in other repos that people who got the same error message were able to resolve it by specifying synchronization=tf.VariableSynchronization.ON_READ in the self.add_weight(...) call (see below).

But I am not sure whether the on-read-synchronization is the correct behavior in this case.

self.precision_matrix = (
    self.add_weight(
        name='gp_precision_matrix',
        shape=(gp_feature_dim, gp_feature_dim),
        dtype=self.dtype,
        initializer=tf.keras.initializers.Identity(self.ridge_penalty),
        trainable=False,
        aggregation=tf.VariableAggregation.ONLY_FIRST_REPLICA))

(from https://github.com/google/edward2/blob/807bd74d93c607a5a4030c4ef7debecf89f8b6ab/edward2/tensorflow/layers/random_feature.py#L337)

from uncertainty-baselines.

znado avatar znado commented on May 18, 2024

Hey! Sorry for the delay.

What was the command you were using to run the code, and what was the GPU/version of CUDA/version of TF? Also, have you been able to reproduce this at the current HEAD?

from uncertainty-baselines.

gpleiss avatar gpleiss commented on May 18, 2024

I get the exact same error. Fresh install (nightly version of tf - 9/7/21), CUDA 11.2.

from uncertainty-baselines.

psiden avatar psiden commented on May 18, 2024

I also get this error with TF 2.7

from uncertainty-baselines.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.