Can we replace Relu6 with hardtanh(0,6)

Can we replace Relu6 with Hardtah(0,6) since both clamp the value in the range (0~6)

YES, we can see that ReLU6 is a subclass of Hardtanh.

1 Like