Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 201 for newFoo (0.12 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_tf_while.cc

      auto new_op = OpBuilder(op).create<TFL::WhileOp>(
          op->getLoc(), op->getResultTypes(), op->getOperands(),
          while_op.getIsStateless());
      Location loc = while_op->getLoc();
      CreateRegionWithCall(while_op.cond_function(), new_op.getCond(), loc);
      CreateRegionWithCall(while_op.body_function(), new_op.getBody(), loc);
    
      op->replaceAllUsesWith(new_op.getResults());
      op->erase();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  2. plugin/pkg/admission/namespace/autoprovision/admission_test.go

    					Name:            ns,
    					ResourceVersion: fmt.Sprintf("%d", i),
    				},
    			})
    		}
    		return true, namespaceList, nil
    	})
    	return mockClient
    }
    
    // newPod returns a new pod for the specified namespace
    func newPod(namespace string) api.Pod {
    	return api.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "123", Namespace: namespace},
    		Spec: api.PodSpec{
    			Volumes:    []api.Volume{{Name: "vol"}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. pilot/pkg/controllers/untaint/nodeuntainter_test.go

    		pod.Status = corev1.PodStatus{}
    		newPod := s.pc.Create(pod)
    		if markReady {
    			setPodReady(newPod)
    		}
    		newPod.Status.PodIP = ip
    		newPod.Status.Phase = corev1.PodRunning
    		newPod.Status.PodIPs = []corev1.PodIP{
    			{
    				IP: ip,
    			},
    		}
    		s.pc.UpdateStatus(newPod)
    	} else {
    		s.pc.Update(pod)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 00:50:31 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/tutorial/configureObject/kotlin/build.gradle.kts

    class UserInfo(
        var name: String? = null,
        var email: String? = null
    )
    
    tasks.register("greet") {
        val user = UserInfo().apply {
            name = "Isaac Newton"
            email = "isaac@newton.me"
        }
        doLast {
            println(user.name)
            println(user.email)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 14 09:57:48 UTC 2024
    - 285 bytes
    - Viewed (0)
  5. plugin/pkg/admission/resourcequota/admission_test.go

    	// create a pod that has an active deadline
    	newPod := validPod("allowed-pod", 1, getResourceRequirements(getResourceList("100m", "2Gi"), getResourceList("", "")))
    	activeDeadlineSeconds := int64(30)
    	newPod.Spec.ActiveDeadlineSeconds = &activeDeadlineSeconds
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  6. pkg/kubelet/config/common.go

    	}
    
    	// Apply default values and validate pods.
    	for i := range newPods.Items {
    		newPod := &newPods.Items[i]
    		if newPod.Name == "" {
    			return true, pods, fmt.Errorf("invalid pod: name is needed for the pod")
    		}
    		if err = defaultFn(newPod); err != nil {
    			return true, pods, err
    		}
    		if errs := validation.ValidatePodCreate(newPod, validation.PodValidationOptions{}); len(errs) > 0 {
    			err = fmt.Errorf("invalid pod: %v", errs)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/informers.go

    		// For update, we just need to handle opt outs
    		newPod := event.New.(*corev1.Pod)
    		oldPod := event.Old.(*corev1.Pod)
    		ns := s.namespaces.Get(newPod.Namespace, "")
    		if ns == nil {
    			return fmt.Errorf("failed to find namespace %v", ns)
    		}
    		wasAnnotated := oldPod.Annotations != nil && oldPod.Annotations[constants.AmbientRedirection] == constants.AmbientRedirectionEnabled
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. src/compress/bzip2/testdata/Isaac.Newton-Opticks.txt.bz2

    Isaac.Newton-Opticks.txt Produced by Suzanne Lybarger, steve harris, Josephine Paolucci and the Online Distributed Proofreading Team at http://www.pgdp.net. OPTICKS: OR, A TREATISE OF THE _Reflections_, _Refractions_, _Inflections_ and _Colours_ OF LIGHT. _The_ FOURTH EDITION, _corrected_. By Sir _ISAAC NEWTON_, Knt. LONDON: Printed for WILLIAM INNYS at the West-End of St. _Paul's_. MDCCXXX. TITLE PAGE OF THE 1730 EDITION SIR ISAAC NEWTON'S ADVERTISEMENTS Advertisement I _Part of the ensuing Discourse...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 24 18:26:02 UTC 2018
    - 129.4K bytes
    - Viewed (0)
  9. pkg/controller/job/tracking_utils_test.go

    	}
    }
    
    func TestRecordFinishedPodWithTrackingFinalizer(t *testing.T) {
    	metrics.Register()
    	cases := map[string]struct {
    		oldPod     *v1.Pod
    		newPod     *v1.Pod
    		wantAdd    int
    		wantDelete int
    	}{
    		"new non-finished Pod with finalizer": {
    			newPod: &v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Finalizers: []string{batch.JobTrackingFinalizer},
    				},
    				Status: v1.PodStatus{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 14 05:40:02 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  10. src/iter/iter.go

    // stopping early if yield returns false.
    type Seq2[K, V any] func(yield func(K, V) bool)
    
    type coro struct{}
    
    //go:linkname newcoro runtime.newcoro
    func newcoro(func(*coro)) *coro
    
    //go:linkname coroswitch runtime.coroswitch
    func coroswitch(*coro)
    
    // Pull converts the “push-style” iterator sequence seq
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:09:28 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top