2020-04-29 11:32:49 +08:00
|
|
|
// RUN: npcomp-opt -split-input-file %s | npcomp-opt | FileCheck --dump-input=fail %s
|
2020-04-30 09:20:42 +08:00
|
|
|
|
2020-04-29 11:32:49 +08:00
|
|
|
// -----
|
|
|
|
// CHECK-LABEL: @builtin_ufunc
|
2020-06-30 07:19:03 +08:00
|
|
|
func @builtin_ufunc(%arg0 : tensor<3xf64>, %arg1 : tensor<3xf64>) -> tensor<3xf64> {
|
|
|
|
%0 = numpy.builtin_ufunc_call<"numpy.add"> (%arg0, %arg1) : (tensor<3xf64>, tensor<3xf64>) -> tensor<3xf64>
|
|
|
|
return %0 : tensor<3xf64>
|
2020-04-30 08:49:56 +08:00
|
|
|
}
|