Fork自 PaddlePaddle / Paddle
// CHECK-LABEL: build_tensor1 func @build_tensor1() {
%a = dt.create_uninit_tensor.f32 [3, 4] -> !Infrt.tensor<X86, NCHW, F32> dt.fill_tensor_with_constant.f32 (%a : !Infrt.tensor<X86, NCHW, F32>) {value=1.0:f32}
// CHECK: tensor: shape=shape[3,4], values=[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
dt.print_tensor (%a : !Infrt.tensor<X86, NCHW, F32>)
Infrt.return
}