Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for is_commutative (0.16 sec)

  1. 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)
  2. tensorflow/c/ops_test.cc

      op_list.ParseFromArray(op_list_buffer->data, op_list_buffer->length);
      bool found = false;
      for (const auto& op : op_list.op()) {
        if (op.name() == "AttributeAccessorsOp") {
          ASSERT_TRUE(op.is_commutative());
          ASSERT_TRUE(op.is_aggregate());
          ASSERT_TRUE(op.allows_uninitialized_input());
          ASSERT_EQ(4, op.deprecation().version());
          ASSERT_EQ(deprecation_msg, op.deprecation().explanation());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 11 01:20:50 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/cc/saved_model/testdata/half_plus_two_pbtxt/00000123/saved_model.pbtxt

                  type: DT_INT16
                  type: DT_INT32
                  type: DT_INT64
                  type: DT_COMPLEX64
                  type: DT_COMPLEX128
                }
              }
            }
            is_commutative: true
          }
          op {
            name: "NoOp"
          }
          op {
            name: "Pack"
            input_arg {
              name: "values"
              type_attr: "T"
              number_attr: "N"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:10:27 UTC 2017
    - 46.9K bytes
    - Viewed (0)
Back to top