Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of about 10,000 for FUNC (0.27 sec)

  1. pkg/securitycontext/accessors.go

    }
    
    type podSecurityContextWrapper struct {
    	podSC *api.PodSecurityContext
    }
    
    func (w *podSecurityContextWrapper) PodSecurityContext() *api.PodSecurityContext {
    	return w.podSC
    }
    
    func (w *podSecurityContextWrapper) ensurePodSC() {
    	if w.podSC == nil {
    		w.podSC = &api.PodSecurityContext{}
    	}
    }
    
    func (w *podSecurityContextWrapper) HostNetwork() bool {
    	if w.podSC == nil {
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 16:15:27 UTC 2023
    - 14.4K bytes
    - Viewed (0)
  2. src/runtime/race/testdata/slice_test.go

    	go func() {
    		a[1] = 1
    		ch <- true
    	}()
    	a[1] = 2
    	<-ch
    }
    
    func TestNoRaceArrayWW(t *testing.T) {
    	var a [5]int
    	ch := make(chan bool, 1)
    	go func() {
    		a[0] = 1
    		ch <- true
    	}()
    	a[1] = 2
    	<-ch
    }
    
    func TestRaceArrayWW(t *testing.T) {
    	var a [5]int
    	ch := make(chan bool, 1)
    	go func() {
    		a[1] = 1
    		ch <- true
    	}()
    	a[1] = 2
    	<-ch
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 25 23:41:03 UTC 2020
    - 8.9K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprog/crash.go

    func DoublePanic() {
    	defer func() {
    		panic(P("YYY"))
    	}()
    	panic(P("XXX"))
    }
    
    // Test that panic while panicking discards error message
    // See issue 52257
    type exampleError struct{}
    
    func (e exampleError) Error() string {
    	panic("important multi-line\nerror message")
    }
    
    func ErrorPanic() {
    	panic(exampleError{})
    }
    
    type examplePanicError struct{}
    
    func (e examplePanicError) Error() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_optimize_global_tensors_interprocedural.mlir

      // CHECK: func private @f(%arg0: tensor<*x!tf_type.resource>) -> tensor<f32>
      func.func private @f(%arg0: tensor<*x!tf_type.resource>) -> tensor<f32> {
        %val = "tf.PartitionedCall"(%arg0) {config = "", config_proto = "", executor_type = "", f = @g} : (tensor<*x!tf_type.resource>) -> (tensor<f32>)
        func.return %val : tensor<f32>
      }
    
      // CHECK: func private @g(%arg0: tensor<*x!tf_type.resource>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  5. cmd/kubeadm/app/util/apiclient/idempotency_test.go

    			}
    		})
    	}
    }
    
    func TestCreateOrMutateConfigMap(t *testing.T) {
    	tests := []struct {
    		name          string
    		setupClient   func(*clientsetfake.Clientset)
    		mutator       func(*v1.ConfigMap) error
    		expectedError bool
    	}{
    		{
    			name: "create configmap",
    			setupClient: func(client *clientsetfake.Clientset) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tf_trait_folds.mlir

    // CHECK-SAME:  ([[ARG0:%.+]]: tensor<i32>)
    func.func @testDoubleReciprocal(%arg0: tensor<i32>) -> tensor<i32> {
      %0 = "tf.Reciprocal"(%arg0) : (tensor<i32>) -> tensor<i32>
      %1 = "tf.Reciprocal"(%0) : (tensor<i32>) -> tensor<i32>
      // CHECK: return [[ARG0]]
      func.return %1: tensor<i32>
    }
    
    // CHECK-LABEL: func @testTripleReciprocal
    // CHECK-SAME:  ([[ARG0:%.+]]: tensor<i32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  7. src/internal/types/testdata/check/decls2/decls2a.go

    type _ struct { m int }
    type _ struct { m int }
    
    func (_ /* ERROR "cannot use _" */) m() {}
    func m(_ /* ERROR "cannot use _" */) {}
    
    // Methods with receiver base type declared in another file.
    func (T3) m1() {}
    func (*T3) m2() {}
    func (x T3) m3() {}
    func (x *T3) f /* ERROR "field and method" */ () {}
    
    // Methods of non-struct type.
    type T4 func()
    
    func (self T4) m() func() { return self }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

    // CHECK: func private @tf.IfRegion_else(%arg0: tensor<2xi64>) -> tensor<*xf32>
    // CHECK-NEXT:    "tf.Cast"
    // CHECK: func private @tf.IfRegion_then(%arg0: tensor<2xi64>) -> tensor<*xf32>
    // CHECK-NEXT:    "tf.Cast"
    func.func private @testIf1Then(tensor<*xf32>) -> tensor<*xf32>
    func.func private @testIf1Else(tensor<*xf32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  9. pkg/log/scope_test.go

    	}{
    		{
    			func() { klog.Error("foo") },
    			"error\tklog\tfoo$",
    		},
    		{
    			func() { klog.Error("foo") },
    			"foo$",
    		},
    		{
    			func() { klog.Errorf("fmt %v", "item") },
    			"fmt item$",
    		},
    		{
    			func() { klog.Errorf("fmt %v", "item") },
    			"fmt item$",
    		},
    		{
    			func() { klog.ErrorS(errors.New("my error"), "info") },
    			"error\tklog\tmy error: info",
    		},
    		{
    			func() { klog.Info("a", "b") },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/device_copy.mlir

      func.return %outputs_0 : tensor<2x2xf32>
    }
    
    // CHECK-LABEL: func @fold_identity_test_device_not_defined
    func.func @fold_identity_test_device_not_defined(%arg0: tensor<2x2xf32>, %arg1: tensor<2x2xf32>) -> tensor<2x2xf32> {
      // CHECK: tf.MatMul
      %outputs = "tf.MatMul"(%arg0, %arg1) {device = "", transpose_a = false, transpose_b = false} : (tensor<2x2xf32>, tensor<2x2xf32>) -> tensor<2x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 5.2K bytes
    - Viewed (0)
Back to top