[tfdbg] Fix examples_test for TF2

RELNOTES: N/A
PiperOrigin-RevId: 264270116
This commit is contained in:
Shanqing Cai 2019-08-19 16:34:30 -07:00 committed by TensorFlower Gardener
parent 764857224b
commit 9ec481cd6d
5 changed files with 14 additions and 5 deletions

View File

@ -22,10 +22,12 @@ import sys
import tempfile
import numpy as np
import tensorflow as tf
import tensorflow
from tensorflow.python import debug as tf_debug
tf = tensorflow.compat.v1
def main(_):
sess = tf.Session()

View File

@ -22,10 +22,12 @@ import sys
import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow as tf
import tensorflow
from tensorflow.python import debug as tf_debug
tf = tensorflow.compat.v1
FLAGS = None

View File

@ -23,10 +23,12 @@ import sys
import tempfile
import numpy as np
import tensorflow as tf
import tensorflow
from tensorflow.python import debug as tf_debug
tf = tensorflow.compat.v1
def main(_):
# Create a dummy dataset.

View File

@ -28,11 +28,13 @@ import argparse
import sys
import tempfile
import tensorflow as tf
import tensorflow
from tensorflow.examples.tutorials.mnist import input_data
from tensorflow.python import debug as tf_debug
tf = tensorflow.compat.v1
IMAGE_SIZE = 28
HIDDEN_SIZE = 500

View File

@ -21,10 +21,11 @@ import argparse
import sys
import tempfile
import tensorflow as tf
import tensorflow
from tensorflow.python import debug as tf_debug
tf = tensorflow.compat.v1
_IRIS_INPUT_DIM = 4