Inplace version of hardtanh API, the output Tensor will be inplaced with input x. Please refer to hardtanh.
hardtanh
x