code: public SDVariable logSumExp(String name, SDVariable input, int... dimensions) {
          validateNumerical("logSumExp reduction", input);
          SDVariable ret = f().logSumExp(input, dimensions);
          return updateVariableNameAndReference(ret, name);
      }
docs: Log-sum-exp reduction (optionally along dimension).
  Computes log(sum(exp(x))
  
  @param name       Name of the output variable
  @param input      Input variable
  @param dimensions Optional dimensions to reduce along
  @return Output variable