Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 442 for pushBack (0.16 sec)

  1. src/cmd/vendor/golang.org/x/sync/semaphore/semaphore.go

    		// Don't make other Acquire calls block on one that's doomed to fail.
    		s.mu.Unlock()
    		<-done
    		return ctx.Err()
    	}
    
    	ready := make(chan struct{})
    	w := waiter{n: n, ready: ready}
    	elem := s.waiters.PushBack(w)
    	s.mu.Unlock()
    
    	select {
    	case <-done:
    		s.mu.Lock()
    		select {
    		case <-ready:
    			// Acquired the semaphore after we were canceled.
    			// Pretend we didn't and put the tokens back.
    			s.cur -= n
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. src/net/http/transport.go

    	tail    []*wantConn
    }
    
    // len returns the number of items in the queue.
    func (q *wantConnQueue) len() int {
    	return len(q.head) - q.headPos + len(q.tail)
    }
    
    // pushBack adds w to the back of the queue.
    func (q *wantConnQueue) pushBack(w *wantConn) {
    	q.tail = append(q.tail, w)
    }
    
    // popFront removes and returns the wantConn at the front of the queue.
    func (q *wantConnQueue) popFront() *wantConn {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  3. src/runtime/mgcmark.go

    	// lock.
    	if atomic.Load(&gcBlackenEnabled) == 0 {
    		unlock(&work.assistQueue.lock)
    		return true
    	}
    
    	gp := getg()
    	oldList := work.assistQueue.q
    	work.assistQueue.q.pushBack(gp)
    
    	// Recheck for background credit now that this G is in
    	// the queue, but can still back out. This avoids a
    	// race in case background marking has flushed more
    	// credit since we checked above.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 21:25:11 UTC 2024
    - 52.5K bytes
    - Viewed (0)
  4. pkg/scheduler/internal/queue/scheduling_queue.go

    	}
    	pInfo := obj.(*framework.QueuedPodInfo)
    	pInfo.Attempts++
    	p.schedulingCycle++
    	// In flight, no concurrent events yet.
    	if p.isSchedulingQueueHintEnabled {
    		p.inFlightPods[pInfo.Pod.UID] = p.inFlightEvents.PushBack(pInfo.Pod)
    	}
    
    	// Update metrics and reset the set of unschedulable plugins for the next attempt.
    	for plugin := range pInfo.UnschedulablePlugins.Union(pInfo.PendingPlugins) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  5. src/runtime/proc.go

    }
    
    // push adds gp to the head of q.
    func (q *gQueue) push(gp *g) {
    	gp.schedlink = q.head
    	q.head.set(gp)
    	if q.tail == 0 {
    		q.tail.set(gp)
    	}
    }
    
    // pushBack adds gp to the tail of q.
    func (q *gQueue) pushBack(gp *g) {
    	gp.schedlink = 0
    	if q.tail != 0 {
    		q.tail.ptr().schedlink.set(gp)
    	} else {
    		q.head.set(gp)
    	}
    	q.tail.set(gp)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  6. tensorflow/cc/gradients/array_grad.cc

                                       std::vector<Output>* grad_outputs) {
      grad_outputs->push_back(Identity(scope, grad_inputs[0]));
      grad_outputs->push_back(NoGradient());
      grad_outputs->push_back(NoGradient());
      grad_outputs->push_back(NoGradient());
      return scope.status();
    }
    REGISTER_GRADIENT_OP("QuantizeAndDequantizeV3", QuantizeAndDequantizeV3Grad);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  7. tensorflow/cc/gradients/image_grad.cc

      grad_outputs->push_back(internal::ScaleAndTranslateGrad(
          scope, grad_inputs[0], op.input(0), op.input(2), op.input(3),
          internal::ScaleAndTranslateGrad::KernelType(kernel_type)
              .Antialias(antialias)));
    
      grad_outputs->push_back(NoGradient());
      grad_outputs->push_back(NoGradient());
      grad_outputs->push_back(NoGradient());
      return scope.status();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 11 00:29:23 UTC 2021
    - 5.7K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/nn_grad.cc

                    epsilon, data_format, is_training));
            grad_outputs->push_back(grad.x_backprop);
            grad_outputs->push_back(grad.scale_backprop);
            grad_outputs->push_back(grad.offset_backprop);
            grad_outputs->push_back(NoGradient());
            grad_outputs->push_back(NoGradient());
            return scope.status();
          },
          grad_outputs);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 23:34:33 UTC 2022
    - 24.5K bytes
    - Viewed (0)
  9. tensorflow/cc/gradients/math_grad.cc

        grad_outputs->push_back(dx);
        auto dy =
            MatMul(scope, y0, y1, MatMul::TransposeA(adj_y0).TransposeB(adj_y1));
        grad_outputs->push_back(dy);
      } else {
        auto dx = BatchMatMulV3(scope, x0, x1, x_data_type,
                                BatchMatMulV3::AdjX(adj_x0).AdjY(adj_x1));
        grad_outputs->push_back(dx);
        auto dy = BatchMatMulV3(scope, y0, y1, y_data_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

              for (size_t i = 0; i < vector.size(); i++) {
                vec.push_back(vector[i].AsInt64());
              }
              std::vector<int64_t> shape;
              if (std::string{key} == "padding") {
                shape.push_back(vec.size() / 2);
                shape.push_back(2);
              } else {
                shape.push_back(vec.size());
              }
              Attribute value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top