Dragon - C++ API
A Computation Graph Virtual Machine Based Deep Learning Framework
Namespaces | Macros | Typedefs
common.h File Reference
#include <ctime>
#include <cmath>
#include <climits>
#include <float.h>
#include <random>
#include <numeric>
#include <memory>
#include <string>
#include <queue>
#include <stack>
#include <array>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <algorithm>
#include <mutex>
#include <functional>
#include "core/types.h"
#include "proto/dragon.pb.h"
#include "utils/string.h"
#include "utils/logging.h"

Go to the source code of this file.

Namespaces

 dragon
 

Macros

#define DRAGON_VERSION   3000
 
#define DEFAULT_RNG_SEED   3
 
#define TLS_OBJECT   __declspec(thread)
 
#define CONCATENATE_IMPL(s1, s2)   s1##s2
 
#define CONCATENATE(s1, s2)   CONCATENATE_IMPL(s1,s2)
 
#define ANONYMOUS_VARIABLE(str)   CONCATENATE(str, __LINE__)
 
#define NOT_IMPLEMENTED   LOG(FATAL) << "This module has not been implemented yet."
 

Typedefs

template<typename Key , typename Value >
using dragon::Map = std::unordered_map< Key, Value >
 
template<typename Value >
using dragon::Set = std::unordered_set< Value >
 

Macro Definition Documentation

◆ ANONYMOUS_VARIABLE

#define ANONYMOUS_VARIABLE (   str)    CONCATENATE(str, __LINE__)

◆ CONCATENATE

#define CONCATENATE (   s1,
  s2 
)    CONCATENATE_IMPL(s1,s2)

◆ CONCATENATE_IMPL

#define CONCATENATE_IMPL (   s1,
  s2 
)    s1##s2

◆ DEFAULT_RNG_SEED

#define DEFAULT_RNG_SEED   3

◆ DRAGON_VERSION

#define DRAGON_VERSION   3000

◆ NOT_IMPLEMENTED

#define NOT_IMPLEMENTED   LOG(FATAL) << "This module has not been implemented yet."

◆ TLS_OBJECT

#define TLS_OBJECT   __declspec(thread)