Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ValueConstraint (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc

    namespace TFDevice {
    
    // -------------------------------------------------------------------------- //
    // ValueConstraint.
    // -------------------------------------------------------------------------- //
    
    ValueConstraint Merge(ValueConstraint a, ValueConstraint b) {
      return a > b ? a : b;
    }
    
    LogicalResult IsStaticallyResolved(Value value, ValueConstraint constraint) {
      // Resolve constraints inferred from the tensor type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/test_cluster_ops_by_policy.cc

          if (is_op_a && *result_constraint == ValueConstraint::kShape)
            operands.Insert(op->getOperand(0), ValueConstraint::kRank);
    
          // `test.OpB` converts value constraint to shape constraint.
          if (*result_constraint == ValueConstraint::kValue)
            operands.Insert(op->getOperand(0), ValueConstraint::kShape);
        }
    
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 04 09:19:38 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.h

    // the shape, you always know the rank.
    ValueConstraint Merge(ValueConstraint a, ValueConstraint b);
    
    // Returns success if constraint can be resolved statically based on the value
    // type, e.g. `shape` constraint can be resolved if the value is a tensor of
    // statically known shape.
    LogicalResult IsStaticallyResolved(Value value, ValueConstraint constraint);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 12.1K bytes
    - Viewed (0)
Back to top