Each of these nodes replaces a TensorFlow subgraph from the original graph, encapsulating all the operations in the subgraph.
If the tensorflow container runs your code correctly with those errors still printed out, please let me know. It worked well for me without any of those "Warnings" printed out. Copy the link and paste in your browser, and start writing your code.
docker pull jupyter/tensorflow-notebook.If you can run your code in a jupyter notebook, then you should use the jupyter/tensorflow-notebook image. The result of print(tf.reduce_sum(tf.random.normal())) is actually tf.Tensor(-203.31216, shape=(), dtype=float32), which is in the last line of what was printed out. I had this same issue not long ago, but I discovered that it actually prints the correct result, and those logs might be warnings. Here are my specs: macOs Mojave - 10.14.6 Tf.Tensor(-203.31216, shape=(), dtype=float32)Īre the instructions misleading (saying latest is a cpu-only image) or am I missing something? I see references to cuda in the output so it would seem this isn't a cpu-only image? Should I be using a different image? 18:53:18.296881: I tensorflow/compiler/xla/service/:176] StreamExecutor device (0): Host, Default Version
18:53:18.296844: I tensorflow/compiler/xla/service/:168] XLA service 0x55c37f5f81f0 initialized for platform Host (this does not guarantee that XLA will be used). 18:53:18.289117: I tensorflow/core/platform/cpu_feature_:142] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
18:53:18.288516: I tensorflow/stream_executor/cuda/cuda_:156] kernel driver does not appear to be running on this host (996a2dd2ab59): /proc/driver/nvidia/version does not exist 18:53:18.288461: E tensorflow/stream_executor/cuda/cuda_:351] failed call to cuInit: UNKNOWN ERROR (303) 18:53:18.288367: W tensorflow/stream_executor/platform/default/dso_:55] Could not load dynamic library 'libcuda.so.1' dlerror: libcuda.so.1: cannot open shared object file: No such file or directory If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly. 18:53:17.848843: W tensorflow/compiler/tf2tensorrt/utils/py_:30] Cannot dlopen some TensorRT libraries. 18:53:17.848763: W tensorflow/stream_executor/platform/default/dso_:55] Could not load dynamic library 'libnvinfer_plugin.so.6' dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory 18:53:17.848471: W tensorflow/stream_executor/platform/default/dso_:55] Could not load dynamic library 'libnvinfer.so.6' dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory However, the following errors occur: ~/> docker run -it -rm tensorflow/tensorflow:latest python -c "import tensorflow as tf print(tf.reduce_sum(tf.random.normal()))"
It's billed as a cpu-only image (under section ), which I believe I need because I'm running on a Mac, and don't have an Nvidia graphics card. Working through the instructions here, I pulled the tensorflow/tensorflow:latest image and then tried running: docker run -it -rm tensorflow/tensorflow:latest python -c "import tensorflow as tf print(tf.reduce_sum(tf.random.normal()))" Following the Getting Started guide for running Tensorflow in a docker container yields an error very quickly.