mruby-tflite
mruby-tflite copied to clipboard
learning example xor
-model.fit(X, y, verbose=True, batch_size=1, nb_epoch=1000)
+model.fit(X, y, verbose=True, batch_size=1, epochs=1000)
$python maketflite.py
Traceback (most recent call last):
File "maketflite.py", line 2, in <module>
import tensorflow.contrib.lite as lite
ModuleNotFoundError: No module named 'tensorflow.contrib'
$ python --version Python 3.8.10
Did you install tensorflote lite?
https://www.tensorflow.org/lite/guide/python
I use pip3 install --index-url https://google-coral.github.io/py-repo/ tflite_runtime and have this same error
Python 3.8.9 (default, Apr 6 2021, 00:00:00)
[GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
2021-07-20 19:23:04.410019: W tensorflow/stream_executor/platform/default/dso_loader.cc:59]
Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared
object file: No such file or directory
2021-07-20 19:23:04.410042: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above
cudart dlerror if you do not have a GPU set up on your machine.
>>> import tflite_runtime.interpreter as tflite
>>>