function res = simple_mlp_tanhfwd(mat)
  res = 2 ./ (1 + exp(-2 * mat)) - 1;
