tensorflow-C++ & OpenCV & OpenBlas & eigen3 & protobuf 环境docker镜像

tensorflow-C++ & OpenCV & OpenBlas & eigen3 & protobuf 环境docker镜像

版本

tensorflow  2.4.1

protobuf 3.9.2

opencv 4.5.2

openblas 0.3.13

eigen3 3.3.9

使用方法:

# 下载镜像
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.
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值