MagmaDNN  1.0
c++NeuralNetworkFramework
utilities_internal.h File Reference
#include <cstdio>
#include <cstdarg>
#include <cstdint>
#include <vector>
#include <set>
#include <deque>
Include dependency graph for utilities_internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define T_IS_SCALAR(tensor_ptr)   ((tensor_ptr)->get_size() == 1)
 
#define T_IS_VECTOR(tensor_ptr)   ((tensor_ptr)->get_size() != 1 && ((tensor_ptr)->get_shape().size() == 1))
 
#define T_IS_MATRIX(tensor_ptr)   ((tensor_ptr)->get_shape().size() == 2)
 
#define T_IS_N_DIMENSIONAL(tensor_ptr, N)   ((tensor_ptr)->get_shape().size() == N)
 
#define OP_IS_SCALAR(op_ptr)   ((op_ptr)->get_output_size() == 1)
 
#define OP_IS_VECTOR(op_ptr)   (((op_ptr)->get_output_size() != 1) && ((op_ptr)->get_output_shape().size() == 1))
 
#define OP_IS_MATRIX(op_ptr)   ((op_ptr)->get_output_shape().size() == 2)
 
#define OP_IS_N_DIMENSIONAL(op_ptr, N)   ((op_ptr)->get_output_shape().size() == N)
 
#define T_IS_SAME_MEMORY_TYPE(x_ptr, y_ptr)   ((x_ptr)->get_memory_type() == (y_ptr)->get_memory_type())
 
#define OP_IS_SAME_MEMORY_TYPE(x_ptr, y_ptr)   ((x_ptr)->get_memory_type() == (y_ptr)->get_memory_type())
 

Functions

int magmadnn::internal::debugf (const char *fmt,...)
 
void magmadnn::internal::print_vector (const std::vector< unsigned int > &vec, bool debug, char begin, char end, char delim)
 

Detailed Description

Author
Daniel Nichols
Version
0.1
Date
2019-05-21

Function Documentation

◆ debugf()

int magmadnn::internal::debugf ( const char *  fmt,
  ... 
)

Only prints #if DEBUG macro is defined.

Parameters
fmt
...
Here is the call graph for this function:
Here is the caller graph for this function: