Fix I5EQL6: xdivy op raise runtime Error while input diff types

This commit is contained in:
zhangzhaoju 2022-07-11 09:07:06 +08:00
parent f90e27c3b6
commit f873053a8f
1 changed files with 2 additions and 2 deletions

View File

@ -3324,10 +3324,10 @@ class Xdivy(Primitive):
[ 1. 2. -0.5]
"""
# Let x/y using diff sig_dtype to disable implicit conversion
# Let x/y using same sig_dtype to enable implicit conversion for compatibility
__mindspore_signature__ = (
sig.make_sig('x', dtype=sig.sig_dtype.T),
sig.make_sig('y', dtype=sig.sig_dtype.T1)
sig.make_sig('y', dtype=sig.sig_dtype.T)
)
@prim_attr_register