Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning by deprecated functions in TensorFlow 1.14 and TFP 0.7.0 #169

Open
rcabanasdepaz opened this issue Jun 24, 2019 · 0 comments
Open
Assignees
Labels

Comments

@rcabanasdepaz
Copy link
Member

When running the following code:

import inferpy as inf
import tensorflow as tf
import numpy as np


@inf.probmodel
def simple(mu=0):
    # global variables
    theta = inf.Normal(mu, 0.1, name="theta")

    # local variables
    with inf.datamodel():
        x = inf.Normal(theta, 1, name="x")

m = simple()

I get the following warnings about deprecated functions

WARNING: Logging before flag parsing goes to stderr.
W0624 19:04:12.979096 4466202048 deprecation_wrapper.py:119] From [ . . . ]/inferpy/models/prob_model.py:63: The name tf.Session is deprecated. Please use tf.compat.v1.Session instead.
2019-06-24 19:04:12.980574: I tensorflow/core/platform/cpu_feature_guard.cc:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
W0624 19:04:13.000632 4466202048 deprecation_wrapper.py:119] From [ . . . ]/inferpy/models/random_variable.py:430: The name tf.variables_initializer is deprecated. Please use tf.compat.v1.variables_initializer instead.
W0624 19:04:13.077933 4466202048 deprecation_wrapper.py:119] From [ . . . ]/inferpy/util/tf_graph.py:63: The name tf.get_default_graph is deprecated. Please use tf.compat.v1.get_default_graph instead.
W0624 19:04:13.135159 4466202048 deprecation_wrapper.py:119] From [ . . . ]/inferpy/models/prob_model.py:145: The name tf.global_variables is deprecated. Please use tf.compat.v1.global_variables instead.

Packages:

tensorflow==1.14.0
tensorflow-estimator==1.14.0
tensorflow-probability==0.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants