Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 60 for rewrites (0.16 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    // Returns pass that prepares TPU computation to be legal for export to
    // TensorFlow.
    std::unique_ptr<OperationPass<ModuleOp>>
    CreatePrepareTpuComputationForTfExportPass();
    
    // Rewrites ops that require quantized inputs or outputs to ops that allow
    // non-quantized inputs and outputs.
    std::unique_ptr<OperationPass<func::FuncOp>> CreateLowerQuantizedPass();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

    }
    
    def HoistReplicateInvariantResourceWritesPass : Pass<"tf-hoist-replicate-invariant-resource-writes", "mlir::func::FuncOp"> {
      let summary = "Hoists writes to replicate invariant resource variables.";
    
      let description = [{
        This pass hoists replicate invariant resource variable writes outside
        tf_device.replicate op. These may have been inserted by other passes such as
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/deadcode.go

    			}
    			d.markableMethods = append(d.markableMethods, methods...)
    		}
    	}
    }
    
    // mapinitcleanup walks all pkg init functions and looks for weak relocations
    // to mapinit symbols that are no longer reachable. It rewrites
    // the relocs to target a new no-op routine in the runtime.
    func (d *deadcodePass) mapinitcleanup() {
    	for _, idx := range d.pkginits {
    		relocs := d.ldr.Relocs(idx)
    		var su *loader.SymbolBuilder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. pkg/config/validation/virtualservice.go

    	}
    
    	return
    }
    
    // validateAuthorityRewrite ensures we only attempt rewrite authority in a single place.
    func validateAuthorityRewrite(rewrite *networking.HTTPRewrite, headers *networking.Headers) error {
    	current := rewrite.GetAuthority()
    	for k, v := range headers.GetRequest().GetSet() {
    		if !isAuthorityHeader(k) {
    			continue
    		}
    		if current != "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

            changed = true;
          }
        }
        if (changed) {
          rewriter.finalizeOpModification(branch);
          return success();
        } else {
          rewriter.cancelOpModification(branch);
          return failure();
        }
      }
    
      LogicalResult matchAndRewrite(TF::IfOp ifop,
                                    PatternRewriter& rewriter) const override {
        bool success =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        auto out_type = op.getZ().getType();
    
        l = rewriter.create<ConvertOp>(op.getLoc(), l, rewriter.getF32Type());
        r = rewriter.create<ConvertOp>(op.getLoc(), r, rewriter.getF32Type());
    
        auto intermediate = rewriter.create<TF::FloorDivOp>(
            op.getLoc(),
            ChangeTensorElementType(&rewriter, out_type, rewriter.getF32Type()), l,
            r);
    
        auto floor_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  9. src/cmd/go/alldocs.go

    //
    // When compiling a single main package, build writes the resulting
    // executable to an output file named after the last non-major-version
    // component of the package import path. The '.exe' suffix is added
    // when writing a Windows executable.
    // So 'go build example/sam' writes 'sam' or 'sam.exe'.
    // 'go build example.com/foo/v2' writes 'foo' or 'foo.exe', not 'v2.exe'.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  10. pkg/config/validation/validation.go

    	return errs
    }
    
    func validateHTTPRewrite(rewrite *networking.HTTPRewrite) error {
    	if rewrite == nil {
    		return nil
    	}
    	if rewrite.Uri != "" && rewrite.UriRegexRewrite != nil {
    		return errors.New("rewrite may only contain one of URI or UriRegexRewrite")
    	}
    	if rewrite.Uri == "" && rewrite.UriRegexRewrite == nil && rewrite.Authority == "" {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top