Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for mirror_pad (0.16 sec)

  1. pkg/kubelet/pod/pod_manager.go

    	}
    	return podToMirror, mirrorToPod
    }
    
    // IsMirrorPodOf returns true if pod and mirrorPod are associated with each other.
    func IsMirrorPodOf(mirrorPod, pod *v1.Pod) bool {
    	// Check name and namespace first.
    	if pod.Name != mirrorPod.Name || pod.Namespace != mirrorPod.Namespace {
    		return false
    	}
    	hash, ok := getHashFromMirrorPod(mirrorPod)
    	if !ok {
    		return false
    	}
    	return hash == getPodHash(pod)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:00 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kubelet.go

    		kl.podManager.AddPod(pod)
    
    		pod, mirrorPod, wasMirror := kl.podManager.GetPodAndMirrorPod(pod)
    		if wasMirror {
    			if pod == nil {
    				klog.V(2).InfoS("Unable to find pod for mirror pod, skipping", "mirrorPod", klog.KObj(mirrorPod), "mirrorPodUID", mirrorPod.UID)
    				continue
    			}
    			kl.podWorkers.UpdatePod(UpdatePodOptions{
    				Pod:        pod,
    				MirrorPod:  mirrorPod,
    				UpdateType: kubetypes.SyncPodUpdate,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

    // LINT.ThenChange(//tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc)
    
    def TFL_MirrorPadOp: TFL_Op<"mirror_pad", [
                         SameOperandsAndResultsScale,
                         QuantizableResult,
                         Pure,
                         TFL_OperandHasRank<1, 2>]> {
      let summary = "MirrorPad Operator. Pads a tensor with mirrored values.";
    
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  4. tensorflow/cc/framework/fuzzing/op_fuzzing.bzl

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 07 19:14:57 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/examples/pad/pad_ops_test.py

        }
        kwargs_ = {
            'input_': input_,
            'paddings': paddings,
            'mode': mode,
        }
        # Make sure the composition python function is correct
        self._assertOpAndComposite([input_], tf.raw_ops.MirrorPad,
                                   ops_defs._composite_mirror_pad, kwargs_, kwargs)
        # Make sure the translation and decomposition is correct
        self._assertOpAndComposite([input_],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  6. pkg/kubelet/pod_workers_test.go

    }
    
    type simpleFakeKubelet struct {
    	pod       *v1.Pod
    	mirrorPod *v1.Pod
    	podStatus *kubecontainer.PodStatus
    	wg        sync.WaitGroup
    }
    
    func (kl *simpleFakeKubelet) SyncPod(ctx context.Context, updateType kubetypes.SyncPodType, pod, mirrorPod *v1.Pod, podStatus *kubecontainer.PodStatus) (bool, error) {
    	kl.pod, kl.mirrorPod, kl.podStatus = pod, mirrorPod, podStatus
    	return false, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 75.6K bytes
    - Viewed (0)
  7. pkg/kubelet/runonce.go

    		if err := kl.mirrorPodClient.CreateMirrorPod(pod); err != nil {
    			klog.ErrorS(err, "Failed creating a mirror pod", "pod", klog.KObj(pod))
    		}
    		mirrorPod, _ := kl.podManager.GetMirrorPodByPod(pod)
    		if isTerminal, err = kl.SyncPod(ctx, kubetypes.SyncPodUpdate, pod, mirrorPod, status); err != nil {
    			return fmt.Errorf("error syncing pod %q: %v", format.Pod(pod), err)
    		}
    		if retry >= runOnceMaxRetries {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. tensorflow/cc/gradients/array_grad_test.cc

      TensorShape y_shape({4, 7});
      auto y = MirrorPad(scope_, x, paddings, "REFLECT");
      RunTest(x, x_shape, y, y_shape);
    }
    
    TEST_F(ArrayGradTest, MirrorPadGrad_Symmetric) {
      TensorShape x_shape({2, 3});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape));
      auto paddings = Const(scope_, {{1, 1}, {2, 2}});
      TensorShape y_shape({4, 7});
      auto y = MirrorPad(scope_, x, paddings, "SYMMETRIC");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  9. pkg/kubelet/pod_workers.go

    		opts.Pod = other.Pod
    	}
    	// running pods will not persist but will be remembered for replay
    	opts.RunningPod = other.RunningPod
    	// if mirrorPod was not provided, remember the last one for replay
    	if other.MirrorPod != nil {
    		opts.MirrorPod = other.MirrorPod
    	}
    	// accumulate kill pod options
    	if other.KillPodOptions != nil {
    		opts.KillPodOptions = &KillPodOptions{}
    		if other.KillPodOptions.Evict {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
  10. pkg/kubelet/status/status_manager.go

    				klog.InfoS("Got unexpected podIsFinished=false, while podIsFinished=true in status cache, programmer error.", "pod", klog.KObj(pod))
    				podIsFinished = true
    			}
    		}
    	} else if mirrorPod, ok := m.podManager.GetMirrorPodByPod(pod); ok {
    		oldStatus = mirrorPod.Status
    	} else {
    		oldStatus = pod.Status
    	}
    
    	// Check for illegal state transition in containers
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 02 16:27:19 UTC 2024
    - 44.3K bytes
    - Viewed (0)
Back to top