Skip to main content
added 62 characters in body
Source Link
Mihai.Mehe
  • 512
  • 9
  • 17

For instance change from tf.contrib.layers.xavier_initializer()

to tf.compat.v1.initializers.glorot_uniform()

and tf.Variable to tf.compat.v1.get_variable

Also

import tensorflow as tf
tf.compat.v1.disable_v2_behavior()

may help.

For instance change from tf.contrib.layers.xavier_initializer()

to tf.compat.v1.initializers.glorot_uniform()

Also

import tensorflow as tf
tf.compat.v1.disable_v2_behavior()

may help.

For instance change from tf.contrib.layers.xavier_initializer()

to tf.compat.v1.initializers.glorot_uniform()

and tf.Variable to tf.compat.v1.get_variable

Also

import tensorflow as tf
tf.compat.v1.disable_v2_behavior()

may help.

Source Link
Mihai.Mehe
  • 512
  • 9
  • 17

For instance change from tf.contrib.layers.xavier_initializer()

to tf.compat.v1.initializers.glorot_uniform()

Also

import tensorflow as tf
tf.compat.v1.disable_v2_behavior()

may help.