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; return xnn_binary_add;
case HloOpcode::kAnd: case HloOpcode::kAnd:
return xnn_binary_bitwise_and; return xnn_binary_bitwise_and;
// TODO(ashaposhnikov): debug crashes with these instructions. case HloOpcode::kDivide:
// case HloOpcode::kDivide: return xnn_binary_divide;
// return xnn_binary_divide; case HloOpcode::kMaximum:
// case HloOpcode::kMaximum: return xnn_binary_maximum;
// return xnn_binary_maximum;
case HloOpcode::kMinimum: case HloOpcode::kMinimum:
return xnn_binary_minimum; return xnn_binary_minimum;
case HloOpcode::kMultiply: case HloOpcode::kMultiply: