- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for addPatterns (0.17 sec)
-
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
rewriter.replaceOpWithNewOp<TF::SelectV2Op>(op, result_type, cond, lhs, rhs); return success(); } }; void addPatterns(MLIRContext* context, RewritePatternSet& patterns, bool preserve_assert_op) { // Add TF->TF lowering patterns. TF::PopulateLoweringTFPatterns(context, &patterns);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
src/net/http/routing_index_test.go
for i, pat := range patterns { got := indexConflicts(pat, &idx) want := trueConflicts(pat, patterns[:i]) if !slices.Equal(got, want) { t.Fatalf("%q:\ngot %q\nwant %q", pat, got, want) } idx.addPattern(pat) } } func trueConflicts(pat *pattern, pats []*pattern) []string { var s []string for _, p := range pats { if pat.conflictsWith(p) { s = append(s, p.String()) } } slices.Sort(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 22:14:00 UTC 2024 - 4K bytes - Viewed (0) -
src/net/http/routing_tree.go
children mapping[string, *routingNode] multiChild *routingNode // child with multi wildcard emptyChild *routingNode // optimization: child with key "" } // addPattern adds a pattern and its associated Handler to the tree // at root. func (root *routingNode) addPattern(p *pattern, h Handler) { // First level of tree is host. n := root.addChild(p.host) // Second level of tree is method. n = n.addChild(p.method)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:43:24 UTC 2024 - 7.5K bytes - Viewed (0) -
src/net/http/routing_index.go
// are unlikely to be many of them. multis []*pattern } type routingIndexKey struct { pos int // 0-based segment position s string // literal, or empty for wildcard } func (idx *routingIndex) addPattern(pat *pattern) { if pat.lastSegment().multi { idx.multis = append(idx.multis, pat) } else { if idx.segments == nil { idx.segments = map[routingIndexKey][]*pattern{} } for pos, seg := range pat.segments {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 19 18:35:22 UTC 2023 - 4K bytes - Viewed (0) -
src/net/http/routing_tree_test.go
} return testTree } func buildTree(pats ...string) *routingNode { root := &routingNode{} for _, p := range pats { pat, err := parsePattern(p) if err != nil { panic(err) } root.addPattern(pat, nil) } return root } func TestRoutingAddPattern(t *testing.T) { want := `"": "": "a": "/a" "": "/a/{x}" "b":
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 30 15:43:24 UTC 2024 - 7K bytes - Viewed (0) -
src/net/http/server.go
pat, pat.loc, pat2, pat2.loc, d) } return nil }); err != nil { return err } mux.tree.addPattern(pat, handler) mux.index.addPattern(pat) mux.patterns = append(mux.patterns, pat) return nil } // Serve accepts incoming HTTP connections on the listener l,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 123.4K bytes - Viewed (0)