Fix op definition templates for isinf and isnan.
They return a i1 tensor. PiperOrigin-RevId: 339840456 Change-Id: I7b25d8b7c370f31a7c794117912e0e27636eee36
This commit is contained in:
parent
5234e72159
commit
be084bd7a4
@ -1,5 +1,5 @@
|
||||
func @Isinf_elem_type(%arg0: tensor<*xelem_type>)
|
||||
-> tensor<*xelem_type> attributes {tf_entry, llvm.emit_c_interface} {
|
||||
-> tensor<*xi1> attributes {tf_entry, llvm.emit_c_interface} {
|
||||
%0 = "tf.IsInf"(%arg0) : (tensor<*xelem_type>) -> tensor<*xi1>
|
||||
return %0 : tensor<*xi1>
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
func @Isnan_elem_type(%arg0: tensor<*xelem_type>)
|
||||
-> tensor<*xelem_type> attributes {tf_entry, llvm.emit_c_interface} {
|
||||
-> tensor<*xi1> attributes {tf_entry, llvm.emit_c_interface} {
|
||||
%0 = "tf.IsNan"(%arg0) : (tensor<*xelem_type>) -> tensor<*xi1>
|
||||
return %0 : tensor<*xi1>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user