Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Converted ShuffleNet Module Not Working #3

Open
captain-pool opened this issue Jun 10, 2019 · 4 comments
Open

Converted ShuffleNet Module Not Working #3

captain-pool opened this issue Jun 10, 2019 · 4 comments
Labels
bug Something isn't working

Comments

@captain-pool
Copy link
Owner

Tensorflow Version: 1.14
OS Version: Elementary OS Loki
Built from Source: No

Code to Reproduce:

$ python3 export.py
import tensorflow_hub as hub
import tensorflow as tf
module = hub.Module("onnx/shufflenet/1")
preds = module(tf.random_normal(shape=[1, 3, 224, 224], dtype=tf.float32)
with tf.Session() as sess:
  print(sess.run(preds))

Current Output

Error Thrown
PyFunc:0 not Found

Expected Output:

No Error

CC: @srjoglekar246

@captain-pool captain-pool added the bug Something isn't working label Jun 10, 2019
@captain-pool
Copy link
Owner Author

CC: @vbardiovskyg

@gargprince1702
Copy link

tensergit

@captain-pool
Copy link
Owner Author

captain-pool commented Sep 7, 2019

@gargprince1702 please check your version of TensorFlow installation. TF2.0 doesn't have session in the main namespace. Instead it is present in the compatibility namespace.
So to use Session in TF2.0
This is what you need to do.

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

@gargprince1702
Copy link

tenser1git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants