// RUN: infrtexec -i %s | FileCheck %s // CHECK-LABEL: @sign_any_float32_execute func @sign_any_float32_execute() { %allocator = "phi_dt.create_allocator.cpu" (): () -> !phi.allocator %ctx = "phi_dt.create_context.cpu" (%allocator): (!phi.allocator) -> !phi.context %t = "phi_dt.create_dense_tensor.cpu.f32.nchw" (%allocator) {dims=[1:i64], lod=[1:i64]}: (!phi.allocator) -> (!infrt.dense_tensor) "phi_dt.fill_dense_tensor.f32"(%t) {value=[3.8:f32]} : (!infrt.dense_tensor) -> () %e = "phi_cpu.sign.float32.any"(%ctx, %t) : (!phi.context, !infrt.dense_tensor) -> (!infrt.dense_tensor) // CHECK: dense_tensor: shape=shape[1], values=[1] "phi_dt.print_tensor" (%e) : (!infrt.dense_tensor) -> () Infrt.return }