Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,083 for rewrites (1.13 sec)

  1. src/cmd/go/internal/work/gc.go

    				}
    			} else {
    				// Non-overlay Go files are covered by the a.Package.Dir rewrite rule above.
    			}
    		}
    	}
    	if hasCgoOverlay {
    		rewrite += overlayNonGoRewrites
    	}
    	rewrite += objdir + "=>"
    
    	return rewrite
    }
    
    func asmArgs(a *Action, p *load.Package) []any {
    	// Add -I pkg/GOOS_GOARCH so #include "textflag.h" works in .s files.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. src/cmd/compile/internal/ssa/rewrite.go

    const (
    	leaveDeadValues  deadValueChoice = false
    	removeDeadValues                 = true
    )
    
    // deadcode indicates whether rewrite should try to remove any values that become dead.
    func applyRewrite(f *Func, rb blockRewriter, rv valueRewriter, deadcode deadValueChoice) {
    	// repeat rewrites until we find no more rewrites
    	pendingLines := f.cachedLineStarts // Holds statement boundaries that need to be moved to a new value/block
    	pendingLines.clear()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

      // flatbuffer file.
      if (auto custom_op = dyn_cast<mlir::TFL::CustomOp>(*op)) {
        return custom_op.getCustomCode().starts_with("Flex");
      }
    
      // We never see TFL::IfOps in the IR -- it is flatbuffer_export that rewrites
      // them from TF::IfOps.
      if (isa<TF::IfOp>(op)) {
        return false;
      }
    
      // We assume all other TF operators are flex delegated.
      return op->getDialect()->getNamespace() == "tf";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/optimize.cc

    // Returns a TF Constant tensor with the passed in values.
    TF::ConstOp GetI64ConstantTensor(PatternRewriter &rewriter,
                                     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.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. src/cmd/compile/internal/walk/closure.go

    	f.SetType(typ)
    	clofn.Dcl = append(decls, clofn.Dcl...)
    
    	// Rewrite call.
    	n.Fun = f
    	n.Args.Prepend(closureArgs(clo)...)
    
    	// Update the call expression's type. We need to do this
    	// because typecheck gave it the result type of the OCLOSURE
    	// node, but we only rewrote the ONAME node's type. Logically,
    	// they're the same, but the stack offsets probably changed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:56:08 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

                              ArrayRef<int64_t> shape, int64_t val) {
      RankedTensorType type =
          tensorflow::GetTypeFromTFTensorShape(shape, rewriter->getIntegerType(64));
      DenseElementsAttr attr =
          DenseElementsAttr::get(type, rewriter->getI64IntegerAttr(val));
      return rewriter->create<arith::ConstantOp>(loc, type, attr);
    }
    
    Value CreateI32SplatTensor(Location loc, PatternRewriter *rewriter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
Back to top