-
Notifications
You must be signed in to change notification settings - Fork 0
/
tf_core.hpp
54 lines (42 loc) · 1.29 KB
/
tf_core.hpp
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef TFUTILS_TF_CORE_HPP
#define TFUTILS_TF_CORE_HPP
#include <cstring>
#include <filesystem>
#include <iostream>
#include <memory>
#include <list>
#include <string>
#include <QtXml/QtXml>
#include <arpa/inet.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <sys/epoll.h>
#include <sys/socket.h>
#include <unistd.h>
using Jchar = char;
using Jint = int;
using Jlong = long long;
using Jbyte = unsigned char;
using Juint = unsigned int;
using Julong = unsigned long;
using Jbool = bool;
using Jsize = size_t;
using Jfloat = float;
template <class T> struct RemoveType { using Type = T; };
template <class T> using SP = std::shared_ptr<T>;
template <class T> using UP = std::unique_ptr<T>;
template <class T>
constexpr static typename RemoveType<T>::Type &&move(typename RemoveType<T>::Type &&t) {
return static_cast<typename RemoveType<T>::Type &&>(t);
}
template <class T, class... Args>
constexpr static SP<typename RemoveType<T>::Type> make(Args... args) {
return std::make_shared<typename RemoveType<T>::Type>(args...);
}
#include "tf_common.hpp"
#include "tf_command.hpp"
#include "tf_command_adb.hpp"
#include "tf_command_os.hpp"
#include "tf_command_tensorflow_impl.hpp"
#include "tf_command_tensorflow_in.hpp"
#endif // TFUTILS_TF_CORE_HPP