Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 56 for Func1 (0.04 sec)

  1. test/closure3.dir/main.go

    // that are expected to be inlined
    
    package main
    
    var ok bool
    var sink int
    
    func main() {
    	{
    		if x := func() int { // ERROR "can inline main.func1"
    			return 1
    		}(); x != 1 { // ERROR "inlining call to main.func1"
    			ppanic("x != 1")
    		}
    		if x := func() int { // ERROR "can inline main.func2" "func literal does not escape"
    			return 1
    		}; x() != 1 { // ERROR "inlining call to main.func2"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 19:36:29 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  2. src/internal/trace/testdata/testprog/stacks.go

    	// on a channel, in a select or otherwise. So we kick off goroutines
    	// that need to block first in the hope that while we are executing
    	// the rest of the test, they will block.
    	go func() { // func1
    		select {}
    	}()
    	go func() { // func2
    		var c chan int
    		c <- 0
    	}()
    	go func() { // func3
    		var c chan int
    		<-c
    	}()
    	done1 := make(chan bool)
    	go func() { // func4
    		<-done1
    	}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/debugging/mlir_dump_test.cc

      EnableIrPrinting(pm, "dump");
    
      constexpr absl::string_view program = R"mlir(
    module{
      func.func @main(%arg0: tensor<10xf32>) -> tensor<10xf32> {
        return %arg0 : tensor<10xf32>
      }
      func.func @func1(%arg0: tensor<10xf32>, %arg1: tensor<10xf32>) -> tensor<10xf32> {
        %0 = stablehlo.add %arg0, %arg1 : tensor<10xf32>
        %1 = stablehlo.add %arg0, %arg1 : tensor<10xf32>
        return %0 : tensor<10xf32>
      }
    })mlir";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 03:17:14 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/embedding_pipelining.mlir

        return
      }
      // Make sure func1 and func2 use the original resource variable and not the result of @broken_func.
      // CHECK: func.func private @non_tpu
      // CHECK: {{.*%0 = \"tf.StatefulPartitionedCall\"\(%arg0\).*f = @broken_func.*}}
      // CHECK: {{.*StatefulPartitionedCall\"\(%arg0\).*f = @func1.*}}
      // CHECK: {{.*StatefulPartitionedCall\"\(%arg0\).*f = @func2.*}}
    }
    
    // -----
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 33.1K bytes
    - Viewed (0)
  5. src/net/http/main_test.go

    	for _, g := range strings.Split(string(buf), "\n\n") {
    		_, stack, _ := strings.Cut(g, "\n")
    		stack = strings.TrimSpace(stack)
    		if stack == "" ||
    			strings.Contains(stack, "testing.(*M).before.func1") ||
    			strings.Contains(stack, "os/signal.signal_recv") ||
    			strings.Contains(stack, "created by net.startServer") ||
    			strings.Contains(stack, "created by testing.RunTests") ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. src/internal/trace/testdata/tests/go122-annotations-stress.test

    String id=123
    	data="fmt.Sprintf"
    String id=124
    	data="main.do.func1.1"
    String id=125
    	data="runtime/trace.Start"
    String id=126
    	data="/usr/local/google/home/mknyszek/work/go-1/src/runtime/trace/trace.go"
    String id=127
    	data="main.do.func1"
    String id=128
    	data="runtime/trace.WithRegion"
    String id=129
    	data="main.do.func1.1.1"
    String id=130
    	data="time.Sleep"
    String id=131
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/inline/inlheur/testdata/props/calls.go

    // callsite: calls.go:212:19|calls.go:232:10|0 flagstr "" flagval 0 score 4 mask 0 maskstr ""
    // <endcallsites>
    // <endfuncpreamble>
    // calls.go T_call_scoring_in_noninlinable_func.func1 212 0 1
    // <endpropsdump>
    // {"Flags":0,"ParamFlags":[0],"ResultFlags":[0]}
    // <endcallsites>
    // <endfuncpreamble>
    func T_call_scoring_in_noninlinable_func(x int, sl []int) int {
    	if x == 101 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. src/runtime/traceback_system_test.go

    traceback_system_test.go:49: runtime_test.child3: 	child4()
    traceback_system_test.go:45: runtime_test.child2: 	child3()
    traceback_system_test.go:41: runtime_test.child1: 	child2()
    traceback_system_test.go:35: runtime_test.crash.func1: 		child1()
    redacted.go:0: runtime.goexit
    `
    	if strings.TrimSpace(got) != strings.TrimSpace(want) {
    		t.Errorf("got:\n%swant:\n%s", got, want)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. cmd/prune-junit-xml/prunexml_test.go

    , {0x4be7d40?, 0xc0f8c01d50}, 0x2?)&#xA;&#x9;/home/prow/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/google.golang.org/grpc/stream.go:970 +0x2b0&#xA;k8s.io/kubernetes/vendor/google.golang.org/grpc.(*clientStream).RecvMsg.func1(0x4be7d40?)&#xA;&#x9;/home/prow/go/src/k8s.io/kubernetes/_output/local/go/src/k8s.io/kubernetes/vendor/google.golang.org/grpc/stream.go:821 +0x25&#xA;k8s.io/kubernetes/vendor/google.golang.org/grpc.(*clientStream).withRetry(0xc0f3cd65a0, 0xc1169d3e78,...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 12:26:00 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  10. src/runtime/pprof/pprof_test.go

    		if err := p.CheckValid(); err != nil {
    			t.Fatalf("invalid profile: %v", err)
    		}
    
    		stks := stacks(p)
    		for _, want := range [][]string{
    			{"sync.(*Mutex).Unlock", "runtime/pprof.blockMutexN.func1"},
    		} {
    			if !containsStack(stks, want) {
    				t.Errorf("No matching stack entry for %+v", want)
    			}
    		}
    
    		i := 0
    		for ; i < len(p.SampleType); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 68.8K bytes
    - Viewed (0)
Back to top