Fix build errors

This commit is contained in:
MichaelKonobeev 2020-01-03 19:33:21 -07:00
parent 7be1d208ff
commit fec35f30f3
3 changed files with 1 additions and 4 deletions

View File

@ -521,7 +521,7 @@ class TFETensorUtilTest(test_util.TensorFlowTestCase):
@test_util.assert_no_new_pyobjects_executing_eagerly
def testTensorDir(self):
t = array_ops.zeros(1)
t = array_ops.ones(1)
t.test_attr = "Test"
instance_dir = dir(t)

View File

@ -24,7 +24,6 @@ import time
import numpy as np
from tensorflow.core.protobuf import config_pb2
from tensorflow.python.compat import compat
from tensorflow.python.client import session
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes

View File

@ -19,10 +19,8 @@ from __future__ import division
from __future__ import print_function
from tensorflow.python.eager import backprop
from tensorflow.python.eager import context
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_util
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import gen_nn_ops
from tensorflow.python.ops import math_ops