1. Enable support for kDivide and kMaximum in XnnGraphFusion.

2. Extend the test coverage.

PiperOrigin-RevId: 774945991
This commit is contained in:
A. Unique TensorFlower 2025-06-23 15:18:21 -07:00 committed by TensorFlower Gardener
parent bbd497fcda
commit fab3235983

View File

@ -205,11 +205,10 @@ absl::StatusOr<xnn_binary_operator> XnnBinaryOperator(const HloOpcode& opcode) {
return xnn_binary_add;
case HloOpcode::kAnd:
return xnn_binary_bitwise_and;
// TODO(ashaposhnikov): debug crashes with these instructions.
// case HloOpcode::kDivide:
// return xnn_binary_divide;
// case HloOpcode::kMaximum:
// return xnn_binary_maximum;
case HloOpcode::kDivide:
return xnn_binary_divide;
case HloOpcode::kMaximum:
return xnn_binary_maximum;
case HloOpcode::kMinimum:
return xnn_binary_minimum;
case HloOpcode::kMultiply: