- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for is_commutative (0.19 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.h
// Check that we have a constant operand on one side (candidate for identity). const bool is_commutative = (std::is_same<OpT, AddV2Op>::value || std::is_same<OpT, MulOp>::value); auto lhs_attr = mlir::dyn_cast_or_null<DenseElementsAttr>(operands[0]); auto rhs_attr = mlir::dyn_cast_or_null<DenseElementsAttr>(operands[1]); if (!rhs_attr && !(is_commutative && lhs_attr)) return {};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0)