Applies the hardswish function, element-wise, as described in the paper: Searching for MobileNetV3
Examples
if (torch_is_installed()) {
if (FALSE) { # \dontrun{
m <- nn_hardswish()
input <- torch_randn(2)
output <- m(input)
} # }
}
Applies the hardswish function, element-wise, as described in the paper: Searching for MobileNetV3
if (torch_is_installed()) {
if (FALSE) { # \dontrun{
m <- nn_hardswish()
input <- torch_randn(2)
output <- m(input)
} # }
}