-
Notifications
You must be signed in to change notification settings - Fork 181
Expand file tree
/
Copy pathcppflow.h
More file actions
36 lines (27 loc) · 676 Bytes
/
cppflow.h
File metadata and controls
36 lines (27 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// Created by serizba on 17/9/20.
//
#ifndef EXAMPLE_CPPFLOW_H
#define EXAMPLE_CPPFLOW_H
#include "tensor.h"
#include "model.h"
#include "raw_ops.h"
#include "ops.h"
#include "datatype.h"
#include <tensorflow/c/c_api.h>
namespace cppflow {
/**
* Version of TensorFlow and CppFlow
* @return A string containing the version of TensorFow and CppFlow
*/
std::string version();
}
/******************************
* IMPLEMENTATION DETAILS *
******************************/
namespace cppflow {
inline std::string version() {
return "TensorFlow: " + std::string(TF_Version()) + " CppFlow: 2.0.0";
}
}
#endif //EXAMPLE_CPPFLOW_H