Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 85 of 85 for MatchPattern (0.36 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

      }
      return true;
    }
    
    bool QuantizationDriver::SetConstantResultParams(Operation* op) {
      DenseFPElementsAttr attr;
      const Value result = op->getResult(0);
      if (!matchPattern(result, m_Constant(&attr))) {
        return false;
      }
      // TODO: b/323478683 - Make storage_type_width and narrow_range configurable.
      Type final_type;
      const auto it = optimized_weights_.find(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/route/route_test.go

    				},
    			},
    			Headers: []*envoyroute.HeaderMatcher{
    				{
    					Name: "foo",
    					HeaderMatchSpecifier: &envoyroute.HeaderMatcher_StringMatch{
    						StringMatch: &matcher.StringMatcher{MatchPattern: &matcher.StringMatcher_Exact{Exact: "bar"}},
    					},
    					InvertMatch: false,
    				},
    			},
    		}},
    	}
    
    	wantSecond := []*envoyroute.Route{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

     private:
      LogicalResult matchAndRewrite(quantfork::QuantizeCastOp q_op,
                                    PatternRewriter& rewriter) const override {
        DenseFPElementsAttr attr;
        if (!matchPattern(q_op.getArg(), m_Constant(&attr))) {
          return failure();
        }
    
        ShapedType tensor_qtype =
            mlir::cast<ShapedType>(q_op.getResult().getType());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      }
      if (op_name == "tfl.reshape") {
        // Flattens reshape ops when more than one dimension shape operand is given.
        mlir::DenseIntElementsAttr shape_attr;
        if (matchPattern(op_state.operands[1], m_Constant(&shape_attr))) {
          auto shape_ty =
              op_state.operands[1].getType().dyn_cast<RankedTensorType>();
          if (shape_ty != nullptr && shape_ty.hasRank() && shape_ty.getRank() > 1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/load/pkg.go

    			pkg.Incomplete = true
    		}
    	}
    
    	matchers := make([]func(string) bool, len(patterns))
    	for i, p := range patterns {
    		if strings.Contains(p, "...") {
    			matchers[i] = pkgpattern.MatchPattern(p)
    		}
    	}
    	return pkgs, nil
    }
    
    // EnsureImport ensures that package p imports the named package.
    func EnsureImport(p *Package, pkg string) {
    	for _, d := range p.Internal.Imports {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top