Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 578 for rewrites (0.18 sec)

  1. 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)
  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/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

        // Erase unused ops after the transformation.
        rewriter.eraseOp(output_uniform_dequantize_call_pattern->GetCallOp());
        rewriter.eraseOp(output_uniform_quantize_call_pattern->GetCallOp());
        rewriter.eraseOp(multiply_op);
        rewriter.eraseOp(subtract_op);
        rewriter.eraseOp(input_i8_to_f32_convert_op);
        rewriter.eraseOp(input_uniform_quantize_call_pattern->GetCallOp());
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. src/cmd/vendor/golang.org/x/build/relnote/links.go

    		// Don't look for links in anything else.
    		default:
    			res = append(res, in)
    		}
    	}
    	return res
    }
    
    // splitAtBrackets rewrites ins so that every '[' and ']' is the only character
    // of its Plain.
    // For example, the element
    //
    //	[Plain("the [Buffer] is")]
    //
    // is rewritten to
    //
    //	[Plain("the "), Plain("["), Plain("Buffer"), Plain("]"), Plain(" is")]
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc

        for (Region &region : op->getRegions()) {
          Region &new_region = *state.addRegion();
          rewriter.inlineRegionBefore(region, new_region, new_region.begin());
          if (failed(rewriter.convertRegionTypes(&new_region, *getTypeConverter())))
            return failure();
        }
        rewriter.replaceOp(op, rewriter.create(state)->getResults());
    
        // TODO: b/290366702 - Temporarily added metrics for debugging.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. 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)
  9. src/runtime/stubs.go

    //
    //go:linkname add
    //go:nosplit
    func add(p unsafe.Pointer, x uintptr) unsafe.Pointer {
    	return unsafe.Pointer(uintptr(p) + x)
    }
    
    // getg returns the pointer to the current g.
    // The compiler rewrites calls to this function into instructions
    // that fetch the g directly (from TLS or from the dedicated register).
    func getg() *g
    
    // mcall switches from the g to the g0 stack and invokes fn(g),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      return success();
    }
    
    // Rewrites the program_key input of `preprocess_op` to use the output of
    // _TPUCompileMlir.
    void RewritePreprocessInputs(OpBuilder* builder, func::FuncOp func_op,
                                 Operation* preprocess_op) {
      if (preprocess_op->getParentOp() == nullptr) return;
    
      // Find predecessor TPUCompile Op and rewrite the program key.
      Operation* tpu_compile_predecessor =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top