Comments (9)
@nikdata Thank you very much for reporting this issue! We've investigated this failure and have a fix. We will include the fix in the next update.
from tensorflow_macos.
I also get Compute: Operation received an exception: Compute: No MLCTrainingGraph has been found.
when using
disable_eager_execution()
.
from tensorflow_macos.
So I reran everything, and now I get a different error message after running "mlcompute.set_mlc_device(device_name='gpu')":
AttributeError: module 'tensorflow.python._pywrap_util_port' has no attribute 'IsAppleMLCEnabled'
Is this suggesting that the install of the TensorFlow package did not work?
from tensorflow_macos.
Hi! Thanks for sharing your experience. What I would do is the following:
- try running another code, such as this one in #10 and see if it works.
- if it also does not work, re-install the whole thing as per the README instructions.
- after successfully installing, don't run any code directly. Do the following steps to check you have a functioning tensorflow installation.
3.1) in the Terminal, type~/tensorflow_macos_venv/bin/python3
3.2) when the python sign>>>
appears, type:
import tensorflow as tf
from tensorflow.python.compiler.mlcompute import mlcompute
mlcompute.set_mlc_device(device_name = 'gpu')
- The code above should run OK. You may even get a warning that TF is slow in eager mode when using the GPU. This is a good sign. It should mean you are good to go.
I hope the above helps you and others out!
from tensorflow_macos.
@dkgaraujo Thanks for the suggestions. Trying the commands through terminal instead of an IDE did work for me. However, the error still persisted. It seems the error of no MLCTrainingGraph is tied to the dropout layers. If I remove the dropout layers, the model works with no issues.
I'd say this issue and issue #23 are related since the root cause seems to be the dropout layer. The code posted in issue #25 works just fine (note that no dropout layer is used).
from tensorflow_macos.
Hi! Thanks for sharing your experience. What I would do is the following:
- try running another code, such as this one in #10 and see if it works.
- if it also does not work, re-install the whole thing as per the README instructions.
- after successfully installing, don't run any code directly. Do the following steps to check you have a functioning tensorflow installation.
3.1) in the Terminal, type~/tensorflow_macos_venv/bin/python3
3.2) when the python sign>>>
appears, type:import tensorflow as tf from tensorflow.python.compiler.mlcompute import mlcompute mlcompute.set_mlc_device(device_name = 'gpu')
- The code above should run OK. You may even get a warning that TF is slow in eager mode when using the GPU. This is a good sign. It should mean you are good to go.
I hope the above helps you and others out!
I had to uninstall using pip and pip3 the tensorflow and re-installed the tensorflow_macos then all the jupyter stuff to make it work!!
from tensorflow_macos.
@nikdata Could you please try out the updated release and let us know if you still see the issue you reported? Thank you!
from tensorflow_macos.
@anna-tikhonova Works great! I didn't have any errors while running the script. While updating the package, I did have to manually reinstall a few of the python libraries to specific versions (e.g., gast, grpcio, numpy, protobuf) since the versions I had were newer than the ones required.
from tensorflow_macos.
Hi! Thanks for sharing your experience. What I would do is the following:
- try running another code, such as this one in #10 and see if it works.
- if it also does not work, re-install the whole thing as per the README instructions.
- after successfully installing, don't run any code directly. Do the following steps to check you have a functioning tensorflow installation.
3.1) in the Terminal, type~/tensorflow_macos_venv/bin/python3
3.2) when the python sign>>>
appears, type:import tensorflow as tf from tensorflow.python.compiler.mlcompute import mlcompute mlcompute.set_mlc_device(device_name = 'gpu')
- The code above should run OK. You may even get a warning that TF is slow in eager mode when using the GPU. This is a good sign. It should mean you are good to go.
I hope the above helps you and others out!
I had to uninstall using pip and pip3 the tensorflow and re-installed the tensorflow_macos then all the jupyter stuff to make it work!!
when you do not use disable_eagler_execution() the learning take longer the apple version even the cpu works faster only when you using eager disabled and gpu tranning in parallels only works when eagler is disabled for any video card on version 2.4! so still getting error
Operation received an exception: Cannot find cached MLCTrainingGraph for the LSTM.
from tensorflow_macos.
Related Issues (20)
- Using `model.set_weights()` yields incorrect behavior when MLC is enabled HOT 2
- Kernel is dying when I run the tensorflow.keras.models.Sequential.Fit() on Apple M1 HOT 2
- Apple M1 TensorFlow HOT 6
- Can't use SpectralNormalization wrapper layer.
- When can get new version basic on tf release version HOT 1
- Initialization issues and model.predict doesn't work HOT 6
- Error while running keras.sequential HOT 2
- Tensorflow with gpu HOT 2
- issues while doing model.fit HOT 1
- Apple M1: process finished with exit code 132 (interrupted by signal 4: sigill) HOT 8
- Transformer hugginface BERT model not working HOT 3
- installer script fail
- ImportError: dlopen( ... _pywrap_tensorflow_internal.so: mach-o, but wrong architecture HOT 2
- Request for comment: re: future of TF development on macOS. HOT 9
- `model.fit` makes the kernel crash when passing a `class_weight`
- op type not registered `NormalizeUTF8` initializing BERT HOT 1
- TransposeMLCBytes nullptr error during training process HOT 1
- TensorFlow Addons
- Error retrieving python version, or python executable /Library/Frameworks/Python.framework/Versions/3.9/bin/python3 not version 3.8. Please specify a Python 3.8 executable with the --python option.
- Check failed: outputs_[index].tensor == nullptr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow_macos.