- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 173 for rewrite (0.13 sec)
-
src/cmd/compile/internal/rangefunc/rewrite.go
// license that can be found in the LICENSE file. /* Package rangefunc rewrites range-over-func to code that doesn't use range-over-funcs. Rewriting the construct in the front end, before noder, means the functions generated during the rewrite are available in a noder-generated representation for inlining by the back end. # Theory of Operation The basic idea is to rewrite for x := range f { ... } into
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:05:44 UTC 2024 - 41.6K bytes - Viewed (0) -
src/net/http/httputil/reverseproxy.go
) // A ProxyRequest contains a request to be rewritten by a [ReverseProxy]. type ProxyRequest struct { // In is the request received by the proxy. // The Rewrite function must not modify In. In *http.Request // Out is the request which will be sent by the proxy. // The Rewrite function may modify or replace this request. // Hop-by-hop headers are removed from this request // before Rewrite is called. Out *http.Request }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 27 23:37:42 UTC 2024 - 24.9K bytes - Viewed (0) -
src/go/types/generate_test.go
switch n := n.(type) { case *ast.ImportSpec: // rewrite import path "cmd/compile/internal/syntax" to "go/token" if n.Path.Kind != token.STRING { panic("invalid import path") } m.rename(&n.Path.Value) return false case *ast.SelectorExpr: // rewrite syntax.Pos to token.Pos m.renameSel(n) case *ast.CallExpr: // rewrite x.IsKnown() to x.IsValid()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 16.5K bytes - Viewed (0) -
src/cmd/dist/buildtool.go
} var ssaRewriteFileSubstring = filepath.FromSlash("src/cmd/compile/internal/ssa/rewrite") // isUnneededSSARewriteFile reports whether srcFile is a // src/cmd/compile/internal/ssa/rewriteARCHNAME.go file for an // architecture that isn't for the given GOARCH. // // When unneeded is true archCaps is the rewrite base filename without // the "rewrite" prefix or ".go" suffix: AMD64, 386, ARM, ARM64, etc.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 09 23:29:41 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc
return IsTransposeOpWithPermuation(lhs.getDefiningOp(), kNhwcToNchwPermutation); } void rewrite(AddOp op, PatternRewriter& rewriter) const override { DeferRhsTransposeForBinaryOp(op, rewriter); } }; // Rewrites the `reduce_window(transpose(%activation), %init_value)` patterns to // `transpose(reduce_window(%activation), %init_value)`, deferring the transpose
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h
for (Operation* candidate_op : *candidate_ops) { // If it is requantize op, we shouldn't rewrite this op. if (isa<QuantizeOpT, DequantizeOpT>(candidate_op)) { return failure(); } // If the op is terminator, we shouldn't rewrite. if (candidate_op->hasTrait<OpTrait::IsTerminator>()) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
PatternRewriter& rewriter) { OpBuilder::InsertionGuard insertion_guard(rewriter); // Create a new `CallOp` that calls `callee_func_op`. rewriter.setInsertionPoint(xla_call_module_op); auto call_op = rewriter.create<func::CallOp>(xla_call_module_op.getLoc(), callee_func_op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
src/cmd/go/script_test.go
archive.Files[gomodIdx].Data = newGomodData rewrite = true } newGosumData, err := os.ReadFile(s.Path("go.sum")) if err != nil && !os.IsNotExist(err) { t.Fatalf("reading go.sum after -testsum: %v", err) } switch { case os.IsNotExist(err) && gosumIdx >= 0: // go.sum was deleted. rewrite = true archive.Files = append(archive.Files[:gosumIdx], archive.Files[gosumIdx+1:]...)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
OpBuilder::InsertionGuard g(rewriter); rewriter.setInsertionPointAfter(preceding_sc_op); auto fcast_op = rewriter.create<TF::CastOp>( preceding_sc_op->getLoc(), dq_arg_type.clone(rewriter.getF32Type()), preceding_sc_op.getResult()); // Create a new AvgPool op with float type. TF::AvgPoolOp float_avg_pool_op = rewriter.create<TF::AvgPoolOp>( avg_pool_op->getLoc(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/cases/map.go
lower = (*context).copy } else if !o.ignoreFinalSigma { lower = finalSigma(lower) } return &titleCaser{ title: x.title, lower: lower, titleSpan: x.titleSpan, rewrite: x.rewrite, } } func noSpan(c *context) bool { c.err = transform.ErrEndOfSpan return false } // TODO: consider a similar special case for the fast majority lower case. This
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 22.7K bytes - Viewed (0)