def _piecewise_linear_log()

in StreamingASR/run_sasr.py [0:0]


def _piecewise_linear_log(x):
    x[x > math.e] = torch.log(x[x > math.e])
    x[x <= math.e] = x[x <= math.e] / math.e
    return x