0、 环境配置
可以看看本专栏的往前文章教程进行配置,本文使用的是该环境
https://github.com/KangChou/tf-dnn-cc/tree/main/tf-cc-cuda
1、测试源码
example.cpp:
#include <tensorflow/tensorflow/core/platform/env.h>
#include <tensorflow/tensorflow/core/public/session.h>
#include <tensorflow/tensorflow/c/c_api.h>
// #include <opencv2/opencv.hpp>
// using namespace cv
#include <iostream></