InferPy
InferPy copied to clipboard
warning by deprecated functions in TensorFlow 1.14 and TFP 0.7.0
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