mruby-tflite icon indicating copy to clipboard operation
mruby-tflite copied to clipboard

learning example xor

Open sp00ck opened this issue 4 years ago • 2 comments

-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

sp00ck avatar Jul 20 '21 10:07 sp00ck

Did you install tensorflote lite?

https://www.tensorflow.org/lite/guide/python

mattn avatar Jul 20 '21 15:07 mattn

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
>>> 

ojej avatar Jul 20 '21 17:07 ojej