10000 Create Solutions for TensorFlow Version 1.14 Issue on Elementary OS Loki by Rumixyz · Pull Request #71 · captain-pool/GSOC · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Create Solutions for TensorFlow Version 1.14 Issue on Elementary OS Loki #71

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Rumixyz
Copy link
@Rumixyz Rumixyz commented Feb 19, 2025

To resolve the issue with TensorFlow 1.14 on Elementary OS Loki, you can try the following solutions:

1.Upgrade TensorFlow: If possible, consider upgrading to a more recent version of TensorFlow, as many bugs and compatibility issues have been addressed in later releases. You can do this using pip:

pip install --upgrade tensorflow

  1. Check TensorFlow Hub Compatibility: Ensure that the version of TensorFlow Hub you are using is compatible with TensorFlow 1.14. You can specify a compatible version during installation:

pip install tensorflow-hub==0.6.0

  1. Modify the Code: Update your code to ensure that the TensorFlow session is properly initialized. Here’s a revised version of your code:

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:
sess.run(tf.global_variables_initializer()) # Initialize variables
print(sess.run(preds))
4. 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:
sess.run(tf.global_variables_initializer()) # Initialize variables
print(sess.run(preds))

  1. Check Dependencies: Ensure that all dependencies are correctly installed and compatible with your TensorFlow version. You can use:

pip check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0