blob: a0231b03408f93d653c7080ce91c8e80ea53961b [file] [log] [blame]
func.func @tensor_float() {
%0 = util.unfoldable_constant dense<[-1.0, -0.5, 0.0, 1.0]> : tensor<4xf32>
%result = tosa.abs %0 : (tensor<4xf32>) -> tensor<4xf32>
check.expect_almost_eq_const(%result, dense<[1.0, 0.5, 0.0, 1.0]> : tensor<4xf32>) : tensor<4xf32>
return
}