Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 146 for REWRITES (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/device_canonicalize.mlir

      }) : () -> (tensor<!tf_type.string>, tensor<!tf_type.string>)
      // CHECK: return %arg0, %arg1
      func.return %0#0, %0#1 : tensor<!tf_type.string>, tensor<!tf_type.string>
    }
    
    // Verifies handling op a cluster op requiring no rewrites.
    // CHECK-LABEL: func @canonical_cluster
    func.func @canonical_cluster(%arg0 : tensor<!tf_type.string>, %arg1 : tensor<!tf_type.string>) -> (tensor<!tf_type.string>, tensor<!tf_type.string>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 04 14:07:37 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

                                     ArrayRef<int64_t> values, Location location) {
      auto cst_attr = rewriter.getI64TensorAttr(values);
      return rewriter.create<TF::ConstOp>(location, cst_attr.getType(), cst_attr);
    }
    
    // Rewrites broadcast->reshape to a reshape->broadcast that reduces
    // the rank of the input and output of the broadcast.
    class SimplifyBroadcastReshape : public OpRewritePattern<BroadcastToOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/func.go

    	lit.SetImplicit(true)
    
    	n := Expr(lit)
    	if n.Type() == nil {
    		base.FatalfAt(pos, "mkdotargslice: typecheck failed")
    	}
    	return n
    }
    
    // FixVariadicCall rewrites calls to variadic functions to use an
    // explicit ... argument if one is not already present.
    func FixVariadicCall(call *ir.CallExpr) {
    	fntype := call.Fun.Type()
    	if !fntype.IsVariadic() || call.IsDDD {
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  4. src/cmd/go/internal/work/gc.go

    			rewriteDir = m.Path + "@" + m.Version + strings.TrimPrefix(importPath, m.Path)
    		} else {
    			rewriteDir = importPath
    		}
    		rewrite += a.Package.Dir + "=>" + rewriteDir + ";"
    	}
    
    	// Add rewrites for overlays. The 'from' and 'to' paths in overlays don't need to have
    	// same basename, so go from the overlay contents file path (passed to the compiler)
    	// to the path the disk path would be rewritten to.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  5. src/go/build/constraint/expr.go

    	// Push all NOTs to the expression leaves, so that //go:build !(x && y) can be treated as !x || !y.
    	// This rewrite is both efficient and commonly needed, so it's worth doing.
    	// Essentially all other possible rewrites are too expensive and too rarely needed.
    	x = pushNot(x, false)
    
    	// Split into AND of ORs of ANDs of literals (tag or NOT tag).
    	var split [][][]Expr
    	for _, or := range appendSplitAnd(nil, x) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/closure.go

    package walk
    
    import (
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    // directClosureCall rewrites a direct call of a function literal into
    // a normal function call with closure variables passed as arguments.
    // This avoids allocation of a closure object.
    //
    // For illustration, the following call:
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/windows/exec_windows.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Fork, exec, wait, etc.
    
    package windows
    
    import (
    	errorspkg "errors"
    	"unsafe"
    )
    
    // EscapeArg rewrites command line argument s as prescribed
    // in http://msdn.microsoft.com/en-us/library/ms880421.
    // This function returns "" (2 double quotes) if s is empty.
    // Alternatively, these transformations are done:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/dec.rules

    (StructSelect [2] (StructMake4 _ _ x _)) => x
    (StructSelect [3] (StructMake4 _ _ _ x)) => x
    
    // Special case coming from immediate interface rewriting
    // Typical case: (StructSelect [0] (IData (IMake typ dat)) rewrites to (StructSelect [0] dat)
    // but because the interface is immediate, the type of "IData" is a one-element struct containing
    // a pointer that is not the pointer type of dat (can be a *uint8).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 00:48:31 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  9. docs/features/interceptors.md

    ```java
    /** Dangerous interceptor that rewrites the server's cache-control header. */
    private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() {
      @Override public Response intercept(Interceptor.Chain chain) throws IOException {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/pgo_devirtualize_test.go

    type devirtualization struct {
    	pos    string
    	callee string
    }
    
    const profFileName = "devirt.pprof"
    const preProfFileName = "devirt.pprof.node_map"
    
    // testPGODevirtualize tests that specific PGO devirtualize rewrites are performed.
    func testPGODevirtualize(t *testing.T, dir string, want []devirtualization, pgoProfileName string) {
    	testenv.MustHaveGoRun(t)
    	t.Parallel()
    
    	const pkg = "example.com/pgo/devirtualize"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 15 21:30:35 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top