Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for recv_a (0.42 sec)

  1. tensorflow/compiler/jit/deadness_analysis_test.cc

      Output recv_a = ops::_HostRecv(root.WithOpName("recv_a"), DT_FLOAT,
                                     "tensor_a", "sender", 0, "receiver");
      Output recv_b = ops::_HostRecv(root.WithOpName("recv_b"), DT_FLOAT,
                                     "tensor_b", "sender", 0, "receiver");
      Output add = ops::Add(root.WithOpName("add"), recv_a, recv_b);
    
      std::unique_ptr<DeadnessAnalysis> result;
      TF_ASSERT_OK(AnalyzeDeadness(root.graph(), &result));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

    }
    
    TEST(XlaCompilationTest, ClusterControlTrigger) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      Output recv_a = ops::_Recv(root.WithOpName("recv_a"), DT_BOOL, "tensor_a",
                                 "sender", 0, "receiver");
      Output recv_b = ops::_Recv(root.WithOpName("recv_b"), DT_BOOL, "tensor_b",
                                 "sender", 0, "receiver");
      Output const_a = ops::Const(root.WithOpName("const_a"), 42);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  3. test/chan/select7.go

    	select {
    	case c <- 1:
    	}
    }
    
    func send3(recv func(<-chan int)) {
    	c := make(chan int)
    	go recv(c)
    	runtime.Gosched()
    	c2 := make(chan int)
    	select {
    	case c <- 1:
    	case c2 <- 1:
    	}
    }
    
    func main() {
    	send1(recv1)
    	send2(recv1)
    	send3(recv1)
    	send1(recv2)
    	send2(recv2)
    	send3(recv2)
    	send1(recv3)
    	send2(recv3)
    	send3(recv3)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 932 bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

        Node* recv1 = RecvAtHost(
            ops::NodeOut(key_constant, 0), "F1", "F1", "O1", {DT_FLOAT, DT_FLOAT},
            b2.opts().WithAttr(kXlaHasHostTransferAttrName, true));
        Node* e = Binary(ops::NodeOut(recv1, 0), ops::NodeOut(recv1, 1),
                         b2.opts()
                             .WithName("E")
                             .WithControlInputs({recv1})
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  5. cmd/bucket-policy-handlers_test.go

    		apiRouter.ServeHTTP(recV4, reqV4)
    		if recV4.Code != testCase.expectedRespStatus {
    			t.Errorf("Test %d: %s: Expected the response status to be `%d`, but instead found `%d`", i+1, instanceType, testCase.expectedRespStatus, recV4.Code)
    		}
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		recV2 := httptest.NewRecorder()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 32.9K bytes
    - Viewed (0)
  6. test/chan/nonblock.go

    					panic("fail")
    				}
    				sleep()
    			}
    		}
    		<-sync
    
    		go i32sender(c32, sync)
    		if buffer > 0 {
    			<-sync
    		}
    		try = 0
    	Recv32:
    		for {
    			select {
    			case i32 = <-c32:
    				break Recv32
    			default:
    				try++
    				if try > maxTries {
    					println("i32sender buffer=", buffer)
    					panic("fail")
    				}
    				sleep()
    			}
    		}
    		if i32 != 234 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 06:44:02 UTC 2012
    - 3.9K bytes
    - Viewed (0)
  7. test/typeparam/append.go

    package main
    
    type Recv <-chan int
    
    type sliceOf[E any] interface {
    	~[]E
    }
    
    func _Append[S sliceOf[T], T any](s S, t ...T) S {
    	return append(s, t...)
    }
    
    func main() {
    	recv := make(Recv)
    	a := _Append([]Recv{recv}, recv)
    	if len(a) != 2 || a[0] != recv || a[1] != recv {
    		panic(a)
    	}
    
    	recv2 := make(chan<- int)
    	a2 := _Append([]chan<- int{recv2}, recv2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 597 bytes
    - Viewed (0)
  8. src/go/types/signature.go

    				}
    				if cause != "" {
    					check.errorf(recv, InvalidRecv, "invalid receiver type %s (%s)", rtyp, cause)
    				}
    			case *Basic:
    				check.errorf(recv, InvalidRecv, "cannot define new methods on non-local type %s", rtyp)
    			default:
    				check.errorf(recv, InvalidRecv, "invalid receiver type %s", recv.typ)
    			}
    		}).describef(recv, "validate receiver %s", recv)
    	}
    
    	sig.params = NewTuple(params...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. test/chan/doubleselect.go

    // channel, but this doesn't actually trigger the bug.
    func mux(out chan<- int, in <-chan int, done chan<- bool) {
    	for v := range in {
    		out <- v
    	}
    	done <- true
    }
    
    // recver gets a steam of values from the four mux's and checks for duplicates.
    func recver(in <-chan int) {
    	seen := make(map[int]bool)
    
    	for v := range in {
    		if _, ok := seen[v]; ok {
    			println("got duplicate value: ", v)
    			panic("fail")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 24 01:34:14 UTC 2017
    - 2K bytes
    - Viewed (0)
  10. src/runtime/chan_test.go

    			for p := 0; p < P; p++ {
    				go func() {
    					recv := make(map[int]int)
    					for i := 0; i < L; i++ {
    						v := <-c
    						recv[v] = recv[v] + 1
    					}
    					done <- recv
    				}()
    			}
    			recv := make(map[int]int)
    			for p := 0; p < P; p++ {
    				for k, v := range <-done {
    					recv[k] = recv[k] + v
    				}
    			}
    			if len(recv) != L {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 20:47:35 UTC 2023
    - 23.4K bytes
    - Viewed (0)
Back to top