[英]Executing frozen tensorflow graph that uses tensorflow.contrib.resampler using c_api.h
[英]Make a prediction in Tensorflow C using c_api.h
我想使用 tensorflow C api 但只有一个示例代码。 在该示例代码中,没有说明如何使用此库打开 model 图形(保存为 a.pb 文件)以及如何进行预测。 (可以在此处找到 c_api.h 代码)。 So can someone provide an example code on how to do something similiar in C using c_api.h , like in python we can just do something like model = load_model("filepath")
and then run model.predict([input])
Thanks to @WeatherVane I found this github repository explaining on how to run python Tensorflow model in C.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.