Skip to content

rockingdingo/tensorflow-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tensorflow CPP API demo

Tensorflow cpp API 调用python预训练模型

###Python定义NN模型训练

cd cpp/scripts

python nn_model.py   # 训练nn模型对Iris数据集分类

sh build.sh          # 运行 freeze_graph.py 将*.ckpt 参数文件和 nn_model.pbtxt 模型定义文件绑定, 输出 nn_model_frozen.pb

# 成功标志: 
# Converted 2 variables to const ops.
# 9 ops in the final graph.

###编译CPP项目进行预测

cd ../

make        # 编译cpp代码的demo, 编译好的可执行文件在 ./bin/tfcpp_demo 文件夹下

sh run.sh   # 运行可执行文件 tfcpp_demo, 读取python预训练好的模型 ./model/nn_model_frozen.pb  进行预测

====================================================

Related

====================================================

References

DeepNLP Blog
DeepNLP Equation
DeepNLP Search
DeepNLP AI Courses
DeepNLP AIGC Chart
DeepNLP AI Writer
DeepNLP Workspace
DeepNLP AI App Store
AI IMAGE GENERATOR
AI Search Engine
AI Chatbot Assistant
AI VIDEO GENERATOR Reviews
AI for ELDERLY
AI for KIDS
AI in LAW
AI in FINANCE
AI in HEALTHCARE
AI in BUSINESS
AI in EDUCATION
AI in PRODUCTIVITY TOOL
AI in POLITICS
AI in ENTERTAINMENT
AI in NEWS
AI in ART AND SPORTS
AI in LIFESTYLE
AI in PAYMENT
AI in SOCIAL
AI in AGRICULTURE
AI in SCIENCE
AI in TECHNOLOGY
AI in TRAVEL
AI in TRANSPORTATION
AI in CAR
AI in CHARITY
AI in PUBLIC SERVICE
AI in HOUSING
AI in COMMUNICATION
AI in FOOD
Robot Quadruped Robot Reviews
Robot Humanoid Robot Reviews
Robotaxi Reviews
Electric Vehicle Reviews
ChatGPT User Reviews
Gemini User Reviews
Perplexity User Reviews
Claude User Reviews
Midjourney User Reviews
Stable Diffusion User Reviews
Runway User Reviews
GPT-5 Forecast
Generative AI Search Engine Optimization

DeepNLP AI & Robots Community Communities

DeepNLP AI & Robots Community for AI Practitioner
Would you share your experience using AI Productivity Tools such as AI Writing Coding CoPilot
What are the features you need for AI Video Generator apps and tools
Which one is the best AI Video Generator Runway Luma Pika Kling and Why
What are the typical use scenarios of Quadruped Robot Dogs
Humanoid Robot Husband Vote for the most popular appearance of Humanoid Robot Husband
Humanoid Robot Wife Who would you choose your humanoid robot wife to look like human females
What are the most important features Humanoid Robot should have in the future
What are the typical use cases of Humanoid Robots

AI Agents Multi-Agents Reasoning

AI Agent Visualization Review Asynchronous Multi-Agent Simulation
Dialogue Visualization Agent Multimodal Visualization Tools for AI Systems A Review

AI Service Reviews and Ratings

Chatbot

OpenAI o1 Reviews
ChatGPT User Reviews
Gemini User Reviews
Perplexity User Reviews
Claude User Reviews
Qwen AI Reviews
Doubao Reviews
ChatGPT Strawberry
Zhipu AI Reviews

AI Image Generation

Midjourney User Reviews
Stable Diffusion User Reviews
Runway User Reviews
GPT-5 Forecast
Flux AI Reviews
Canva User Reviews

AI Video Generation

Luma AI
Pika AI Reviews
Runway AI Reviews
Kling AI Reviews
Dreamina AI Reviews

AI Education

Coursera Reviews
Udacity Reviews
Grammarly Reviews

Robotics

Tesla Cybercab Robotaxi
Tesla Optimus
Figure AI
Unitree Robotics Reviews
Waymo User Reviews
ANYbotics Reviews
Boston Dynamics

AI Tools

DeepNLP AI Tools

AI Widgets

Apple Glasses
Meta Glasses
Apple AR VR Headset
Google Glass
Meta VR Headset
Google AR VR Headsets

Social

Character AI

Self-Driving

BYD Seal
Tesla Model 3
BMW i4
Baidu Apollo Reviews
Hyundai IONIQ 6

Related Blog

Statistics Equation Formula
Machine Learning Equation Formula
Introduction to multimodal generative models
Generative AI Search Engine Optimization: How to Improve Your Content
AI Courses for Kids
AI in Fashion: Tell IWC Schaffhausen Watches Real or Fake
AI in Fashion: Tell Fendi bags real or fake
AI in Fashion: Tell Coach bags real or fake
AI in Fashion: Tell Prada bags real or fake
AI in Fashion: Tell Gucci bags real or fake
AI in Fashion: Tell Dior bags real or fake
AI in Fashion: Tell Hermes bags real or fake
AI in Fashion: Tell Chanel bags real or fake
AI in Fashion: Tell Louis Vuitton bags real or fake
AI in Fashion: Tell Omega Watches real or fake
AI in Fashion: Tell Rolex Watches real or fake
DeepNLP Review Panel
DeepNLP Car Review Panel
DeepNLP Ecommerce Review Panel
DeepNLP Ecommerce Bags Review Panel
DeepNLP Watch Bags Review Panel
DeepNLP Review Ecommerce Brand List
DeepNLP Review Car Brand List
AI Agent Visualization Review Asynchronous Multi-Agent Simulation
Dialogue Visualization Agent Multimodal Visualization Tools for AI Systems A Review

About

Some tensorflow demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published