src/training/common/networkbuilder.cpp
static NetworkType NonLinearity(char func) {
  switch (func) {
    case 's':
      return NT_LOGISTIC;
    case 't':
      return NT_TANH;
    case 'r':
      return NT_RELU;
    case 'l':
      return NT_LINEAR;
    case 'm':
      return NT_SOFTMAX;
    case 'p':
      return NT_POSCLIP;
    case 'n':
      return NT_SYMCLIP;
    default:
      return NT_NONE;
  }
}
// Helper returns the fully-connected type for the character code.
Helper returns the fully-connected type for the character code.
Helper returns the fully - connected type for the character code .
static NetworkType NonLinearity(char func) {
  switch (func) {
    case 's':
      return NT_LOGISTIC;
    case 't':
      return NT_TANH;
    case 'r':
      return NT_RELU;
    case 'l':
      return NT_LINEAR;
    case 'm':
      return NT_SOFTMAX;
    case 'p':
      return NT_POSCLIP;
    case 'n':
      return NT_SYMCLIP;
    default:
      return NT_NONE;
  }
}
static NetworkType NonLinearity ( char func ) { switch ( func ) { case ' ' : return NT_LOGISTIC ; case ' ' : return NT_TANH ; case ' ' : return NT_RELU ; case ' ' : return NT_LINEAR ; case ' ' : return NT_SOFTMAX ; case ' ' : return NT_POSCLIP ; case ' ' : return NT_SYMCLIP ; default : return NT_NONE ; } }
Helper returns the fully-connected type for the character code.
Helper returns the fully - connected type for the character code .