Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 463 for int64Ptr (2.17 sec)

  1. pkg/util/tolerations/tolerations_test.go

    			Effect:            api.TaintEffectNoExecute,
    			TolerationSeconds: utilpointer.Int64Ptr(10),
    		},
    		"foo-noexec-0": {
    			Key:               "foo",
    			Operator:          api.TolerationOpExists,
    			Effect:            api.TaintEffectNoExecute,
    			TolerationSeconds: utilpointer.Int64Ptr(0),
    		},
    		"foo-bar-noexec-10": {
    			Key:               "foo",
    			Operator:          api.TolerationOpEqual,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 26 22:25:49 UTC 2019
    - 11.4K bytes
    - Viewed (0)
  2. pkg/securitycontext/util_test.go

    						RunAsUser: new(int64),
    					},
    				},
    			},
    			container: &v1.Container{
    				SecurityContext: &v1.SecurityContext{
    					RunAsUser: utilptr.Int64Ptr(1),
    				},
    			},
    			wantRunAsUser: utilptr.Int64Ptr(1),
    		},
    	}
    
    	for _, test := range tests {
    		t.Run(test.desc, func(t *testing.T) {
    			runAsUser, ok := DetermineEffectiveRunAsUser(test.pod, test.container)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 05 01:25:23 UTC 2020
    - 5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/delete_test.go

    			object: &metav1.DeleteOptions{
    				GracePeriodSeconds: pointer.Int64Ptr(30),
    				PropagationPolicy:  &policy,
    			},
    			gv:         metav1.SchemeGroupVersion,
    			serializer: metainternalversionscheme.Codecs,
    			ok:         true,
    		},
    		{
    			name: "fake corev1 registered codec encode v1 DeleteOptions",
    			object: &metav1.DeleteOptions{
    				GracePeriodSeconds: pointer.Int64Ptr(30),
    				PropagationPolicy:  &policy,
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 8.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation_test.go

    	Maximum:          float64Ptr(10),
    	ExclusiveMaximum: true,
    	Minimum:          float64Ptr(5),
    	ExclusiveMinimum: true,
    	MaxLength:        int64Ptr(10),
    	MinLength:        int64Ptr(5),
    	Pattern:          "^[a-z]$",
    	MaxItems:         int64Ptr(10),
    	MinItems:         int64Ptr(5),
    	MultipleOf:       float64Ptr(3),
    	Required:         []string{"spec", "status"},
    	Properties: map[string]apiextensions.JSONSchemaProps{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 349.4K bytes
    - Viewed (0)
  5. pkg/volume/projected/projected_test.go

    			fsGroup:     utilptr.Int64Ptr(1000),
    			path:        "token",
    			wantPayload: map[string]util.FileProjection{
    				"token": {
    					Data: []byte("test_projected_namespace:foo:3600:[https://api]"),
    					Mode: 0600,
    				},
    			},
    		},
    		{
    			name:        "fsUser != nil && fsGroup != nil",
    			defaultMode: utilptr.Int32Ptr(0644),
    			fsGroup:     utilptr.Int64Ptr(1000),
    			fsUser:      utilptr.Int64Ptr(1000),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:48 UTC 2023
    - 40.5K bytes
    - Viewed (0)
  6. pkg/api/pod/warnings_test.go

    		},
    		{
    			name: "terminationGracePeriodSeconds is negative",
    			template: &api.PodTemplateSpec{
    				ObjectMeta: metav1.ObjectMeta{},
    				Spec: api.PodSpec{
    					TerminationGracePeriodSeconds: utilpointer.Int64Ptr(-1),
    				},
    			},
    			expected: []string{
    				`spec.terminationGracePeriodSeconds: must be >= 0; negative values are invalid and will be treated as 1`,
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 42.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc

    namespace odml {
    namespace {
    // A struct to hold axes and sizes for a set of dimensions.
    struct DimensionVector {
      llvm::ArrayRef<int64_t> AxesArray() const { return axes; }
      llvm::ArrayRef<int64_t> SizesArray() const { return sizes; }
    
      llvm::SmallVector<int64_t, 4> axes;
      llvm::SmallVector<int64_t, 4> sizes;
    };
    
    // Appends all elements in `range` to `values`.
    template <typename ValueT, typename Range>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.cc

    namespace mlir {
    namespace odml {
    
    bool IsIotaAttr(ArrayRef<int64_t> arr, int64_t size) {
      if (arr.size() != size) return false;
      int64_t iota = 0;
      for (auto s : arr) {
        if (s != iota) return false;
        ++iota;
      }
      return true;
    }
    
    PermutationAndShape GetPermutationAndTransposedShape(
        llvm::ArrayRef<int64_t> permutation_array, ShapedType input_type,
        ConversionPatternRewriter& rewriter) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/hlo_matchers.cc

                                   ArrayRef<int64_t> index) {
    #ifndef NDEBUG
        assert(shape.size() == index.size());
        for (size_t i = 0; i < shape.size(); ++i) {
          assert(index[i] < shape[i]);
          assert(index[i] >= 0);
        }
    #endif  // NDEBUG
        int64_t offset = 0;
        int64_t stride = 1;
        for (int64_t dim = shape.size() - 1; dim >= 0; --dim) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/dynamic_shape_utils.cc

    #include "llvm/ADT/SmallVector.h"
    
    namespace tensorflow {
    
    llvm::SmallVector<int64_t> ConvertTFShapeToMlir(
        llvm::ArrayRef<int64_t> shapes) {
      return llvm::to_vector(llvm::map_range(shapes, [](int64_t shape) {
        return shape == kTFDynamicSize ? mlir::ShapedType::kDynamic : shape;
      }));
    }
    
    llvm::SmallVector<int64_t> ConvertMlirShapeToTF(
        llvm::ArrayRef<int64_t> shapes) {
      return llvm::to_vector(llvm::map_range(shapes, [](int64_t shape) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 21 16:21:18 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top