xlnstorch.operators.lns_hardtanh

Contents

xlnstorch.operators.lns_hardtanh#

xlnstorch.operators.lns_hardtanh(x, min_val, max_val, base)#

See docs for torch.nn.functional.hardtanh() for parameter/return details. Typically, torch.Tensor arguments are the equivalent internal representations of LNStensors.

Parameters:
Return type:

Tensor