gorgonia.org/gorgonia@v0.9.17/release.go (about)

     1  // +build !debug
     2  
     3  package gorgonia
     4  
     5  // DEBUG indicates if this build is in debug mode. It is not.
     6  const DEBUG = false
     7  
     8  const (
     9  	compileDev        = false
    10  	shapeInferenceDev = false
    11  	typeSystemDev     = false
    12  	symdiffDev        = false
    13  	autodiffDev       = false
    14  	machineDev        = false
    15  	stabilizationDev  = false
    16  	cudaDev           = false
    17  	allocatorDev      = false
    18  )
    19  
    20  func tabcount() int { return 0 }
    21  
    22  func enterLogScope()                                   {}
    23  func leaveLogScope()                                   {}
    24  func logf(format string, others ...interface{})        {}
    25  func compileLogf(format string, attrs ...interface{})  {}
    26  func shapeLogf(format string, attrs ...interface{})    {}
    27  func typeSysLogf(format string, attrs ...interface{})  {}
    28  func symdiffLogf(format string, attrs ...interface{})  {}
    29  func autodiffLogf(format string, attrs ...interface{}) {}
    30  func machineLogf(format string, attrs ...interface{})  {}
    31  func stabLogf(format string, attrs ...interface{})     {}
    32  func solverLogf(format string, attrs ...interface{})   {}
    33  func cudaLogf(format string, attrs ...interface{})     {}
    34  func allocatorLogf(format string, attr ...interface{}) {}
    35  func recoverFrom(format string, attrs ...interface{})  {}
    36  
    37  // GraphCollisionStats returns the collisions in the graph only when built with the debug tag, otherwise it's a noop that returns 0
    38  func GraphCollisionStats() (int, int, int) { return 0, 0, 0 }
    39  
    40  func incrCC() {}
    41  func incrEC() {}
    42  func incrNN() {}
    43  
    44  /* Compilation related debug utility functions/methods*/
    45  func logCompileState(name string, g *ExprGraph, df *dataflow) {}
    46  
    47  /* Analysis Debug Utility Functions/Methods */
    48  func (df *dataflow) debugIntervals(sorted Nodes) {}