blob: 81f87f2fa814366e080cdebde4cae57f308080f0 [file] [log] [blame]
func.func @tensor_fp16() {
%input = util.unfoldable_constant dense<[0.0, 1.0, 2.0, 4.0]> : tensor<4xf16>
%result = stablehlo.exponential %input : (tensor<4xf16>) -> tensor<4xf16>
check.expect_almost_eq_const(%result, dense<[1.0, 2.7183, 7.3891, 54.5981]> : tensor<4xf16>) : tensor<4xf16>
return
}