- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for is_commutative (0.21 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) -
tensorflow/c/ops.h
// Sets the commutative property for the op built by the given builder. TF_CAPI_EXPORT extern void TF_OpDefinitionBuilderSetIsCommutative( TF_OpDefinitionBuilder* builder, bool is_commutative); // Sets the is_aggregate property of the builder to the given value. // // If is_aggregate is true, then the operation produced by this builder accepts
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 27 21:07:00 UTC 2023 - 16.3K bytes - Viewed (0)