leandron commented on issue #6754:
URL: https://github.com/apache/incubator-tvm/issues/6754#issuecomment-718909713


   Sorry, too early to claim it is completely fixed :(. I just checked again 
and there was another side effect, this time on Keras testing.
   
   When using pure `Keras` (not `tf.Keras`), all of them fail with the same 
error: `AttributeError: module 'tensorflow.python.framework.ops' has no 
attribute '_TensorLike'`
   
   ```
   ___________________ TestKeras.test_forward_sequential[keras] 
___________________
   
   self = <test_forward.TestKeras object at 0x7f20fb333198>
   keras = <module 'keras' from 
'/usr/local/lib/python3.6/dist-packages/keras/__init__.py'>
   
       def test_forward_sequential(self, keras):
           keras_model = keras.models.Sequential(
               [
                   keras.layers.Dense(16, input_dim=32, activation="relu"),
                   keras.layers.Dropout(0.5),
                   keras.layers.Dense(8, activation="relu"),
                   keras.layers.Dropout(0.5),
   >               keras.layers.Dense(1, activation="sigmoid"),
               ]
           )
   
   tests/python/frontend/keras/test_forward.py:215: 
   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ 
   /usr/local/lib/python3.6/dist-packages/keras/engine/sequential.py:94: in 
__init__
       self.add(layer)
   /usr/local/lib/python3.6/dist-packages/keras/engine/sequential.py:166: in add
       layer(x)
   
/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:75: 
in symbolic_fn_wrapper
       return func(*args, **kwargs)
   /usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py:446: in 
__call__
       self.assert_input_compatibility(inputs)
   /usr/local/lib/python3.6/dist-packages/keras/engine/base_layer.py:310: in 
assert_input_compatibility
       K.is_keras_tensor(x)
   
/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:695: 
in is_keras_tensor
       if not is_tensor(x):
   _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ 
   
   x = <tf.Tensor 'dense_1_input:0' shape=(None, 32) dtype=float32>
   
       def is_tensor(x):
   >       return isinstance(x, tf_ops._TensorLike) or 
tf_ops.is_dense_tensor_like(x)
   E       AttributeError: module 'tensorflow.python.framework.ops' has no 
attribute '_TensorLike'
   
   
/usr/local/lib/python3.6/dist-packages/keras/backend/tensorflow_backend.py:703: 
AttributeError
   ```
   
   I see this looks like https://github.com/tensorflow/models/issues/6177 and 
https://github.com/tensorflow/tensorflow/issues/38589. Apparently it is not 
fixed yet.
   
   @ANSHUMAN87 are you able to reproduce this issues when running frontend 
tests?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to