tensorflow-C++ & OpenCV & OpenBlas & eigen3 & protobuf 环境docker镜像
[toc]
版本
tensorflow 2.4.1
protobuf 3.9.2
opencv 4.5.2
openblas 0.3.13
eigen3 3.3.9
使用方法:
code
# 下载镜像
docker pull sizaif2000/siz:1.0
# 运行后 在 /home/tf_test/ 下有 tensorflow 测试
--------
docker run -p 本机映射端口:镜像映射端口 -d --name 启动镜像名称 -e 镜像启动参数 镜像名称:镜像版本号
参数释义:
-p 本机端口和容器启动端口映射
-d 后台运行
--name 容器名称
-e 镜像启动参数
------------------------
tf_test
.
|-- CMakeLists.txt
|-- README.md
`-- src
`-- main.cpp
1 directory, 3 files
------------------------
cd tf_test
cmake.
make
./main
# if ok, then you can see like this:
This is tensorflow test
XXXX-XX-XX 03:55:33.709188: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI D
eep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: SSE3 SSE4.1 SSE4.2
AVX AVX2 FMA
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
OK
Session successfully created.