forked from OSchip/llvm-project
TensorFlow operands can be broadcasted with each other and with the result, relax the verifier.
PiperOrigin-RevId: 254206814
This commit is contained in:
parent
2d6bbabe4b
commit
25050960af
|
@ -1137,8 +1137,9 @@ class TCOpIsBroadcastableToRes<int opId, int resId> : And<[
|
||||||
IsShapedTypePred>,
|
IsShapedTypePred>,
|
||||||
SubstLeaves<"$_self", "$_op.getResult(" # resId # ")->getType()",
|
SubstLeaves<"$_self", "$_op.getResult(" # resId # ")->getType()",
|
||||||
IsShapedTypePred>,
|
IsShapedTypePred>,
|
||||||
CPred<"OpTrait::util::getBroadcastedType($_op.getOperand(" # opId # "), "
|
CPred<"OpTrait::util::getBroadcastedType("
|
||||||
"$_op.getResult(" # resId # "))">]>;
|
"$_op.getOperand(" # opId # ")->getType(), "
|
||||||
|
"$_op.getResult(" # resId # ")->getType())">]>;
|
||||||
|
|
||||||
// Predicate to verify that all the operands at the given `indices`
|
// Predicate to verify that all the operands at the given `indices`
|
||||||
// have the same element type.
|
// have the same element type.
|
||||||
|
|
Loading…
Reference in New Issue