Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for MatchPattern (0.19 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

      // Currently, support symmetric, per-tensor, signed int8
      const bool kIsNarrowRange = true;
      const bool kIsSigned = true;
      const int kBitWidth = 8;
    
      DenseFPElementsAttr attr;
      if (!matchPattern(op->getResult(0), m_Constant(&attr))) return nullptr;
    
      QuantizedType quant_type = mlir::dyn_cast<quant::QuantizedType>(
          quant::GetUniformQuantizedTypeForWeight(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

                                       DenseIntElementsAttr& replica_groups,
                                       Operation* op) {
      DenseIntElementsAttr group_assignment;
      if (!matchPattern(group_assignment_value, m_Constant(&group_assignment))) {
        return op->emitOpError() << "expects constant group_assignment";
      }
      replica_groups = mlir::cast<DenseIntElementsAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

      if constexpr (std::is_integral_v<T>) {
        DenseIntElementsAttr value_attr;
        if (!matchPattern(value, m_Constant(&value_attr)) ||
            !value_attr.isSplat()) {
          return false;
        }
        splat_value = value_attr.getSplatValue<T>();
        return true;
      }
    
      DenseFPElementsAttr value_attr;
      if (!matchPattern(value, m_Constant(&value_attr)) || !value_attr.isSplat()) {
        return false;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      auto splits = splitv_op.getSizeSplits().getDefiningOp();
      mlir::DenseIntElementsAttr splits_attr;
      if (!splits || !matchPattern(splits, m_Constant(&splits_attr)))
        return failure();
    
      auto split_dim = splitv_op.getSplitDim().getDefiningOp();
      mlir::ElementsAttr split_dim_attr;
      if (!split_dim || !matchPattern(split_dim, m_Constant(&split_dim_attr)))
        return failure();
    
      auto input = splitv_op.getValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. pilot/pkg/networking/util/util.go

    	case *networking.StringMatch_Exact:
    		return &matcher.StringMatcher{MatchPattern: &matcher.StringMatcher_Exact{Exact: m.Exact}}
    	case *networking.StringMatch_Prefix:
    		return &matcher.StringMatcher{MatchPattern: &matcher.StringMatcher_Prefix{Prefix: m.Prefix}}
    	case *networking.StringMatch_Regex:
    		return &matcher.StringMatcher{
    			MatchPattern: &matcher.StringMatcher_SafeRegex{
    				SafeRegex: &matcher.RegexMatcher{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  6. src/cmd/go/internal/search/search.go

    	if m.IsLiteral() {
    		m.Pkgs = []string{m.pattern}
    		return
    	}
    
    	match := func(string) bool { return true }
    	treeCanMatch := func(string) bool { return true }
    	if !m.IsMeta() {
    		match = pkgpattern.MatchPattern(m.pattern)
    		treeCanMatch = pkgpattern.TreeCanMatchPattern(m.pattern)
    	}
    
    	have := map[string]bool{
    		"builtin": true, // ignore pseudo-package that exists only for documentation
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc

    // data so that the iota dimension does not need to be the (inner) z-dimension.
    bool MatchIotaConst(DenseIntElementsAttr dimensions, Value iota) {
      DenseIntElementsAttr iota_const_attr;
      if (!matchPattern(iota, m_Constant(&iota_const_attr))) return false;
    
      auto iota_type = iota_const_attr.getType();
      auto iota_shape = iota_type.getShape();
      auto reduce_dim = (*dimensions.value_begin<APInt>()).getSExtValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

                op->getOperand(qi).getDefiningOp());
            if (!const_op) {
              continue;
            }
    
            DenseFPElementsAttr attr;
            if (!matchPattern(const_op->getResult(0), m_Constant(&attr))) {
              continue;
            }
    
            if (mlir::dyn_cast<DenseFPElementsAttr>(attr).size() >=
                quant_specs_.minimum_elements_for_weights) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

      // Check whether the scales operand has constant op.
      DenseFPElementsAttr scales;
      if (!matchPattern(scales_value, m_Constant(&scales))) {
        return rewriter.notifyMatchFailure(op, "scales must be constant");
      }
    
      // Check whether the zero_points operand has constant op.
      DenseIntElementsAttr zero_points;
      if (!matchPattern(zero_points_value, m_Constant(&zero_points))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

        Operation* def_op = op.getInput().getDefiningOp();
        auto qconst_op = llvm::dyn_cast_or_null<QConstOp>(def_op);
        if (qconst_op == nullptr) return failure();
    
        DenseIntElementsAttr perm_tensor;
        if (!matchPattern(op.getPerm(), m_Constant(&perm_tensor))) return failure();
    
        if (!mlir::isa<quant::UniformQuantizedType>(
                (getElementTypeOrSelf(op.getOutput().getType()))))
          return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top