blob: acdd62664e10e3a33a78e2e9111ec35e75a8254a [file] [log] [blame]
func.func @log_plus_one() {
%input = util.unfoldable_constant dense<[0.0, 0.5, 1.0, 5.0]> : tensor<4xf32>
%result = "mhlo.log_plus_one"(%input) : (tensor<4xf32>) -> tensor<4xf32>
check.expect_almost_eq_const(%result, dense<[0.0, 0.4054651, 0.6931472, 1.7917595]> : tensor<4xf32>) : tensor<4xf32>
return
}