Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of about 10,000 for FUNC (0.22 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-communication.mlir

    // CHECK: func @callee4()
    func.func @callee4() {
      // CHECK:      [[CALLEE4_INIT_TOKEN:%.*]] = mhlo.create_token
    
      // CHECK:      [[CALL_5:%.*]] = call @callee5([[CALLEE4_INIT_TOKEN]])
      func.call @callee5() : () -> ()
    
      // CHECK:      return
      func.return
    }
    
    // CHECK: func private @callee5([[CALLEE5_ARG0:%.*]]: !mhlo.token) -> !mhlo.token
    func.func private @callee5() {
      // CHECK-NOT:  mhlo.create_token
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 08 18:24:20 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/mlir/tensorflow/tests/remove_unused_arguments.mlir

    func.func private @f(%arg0: tensor<f32>, %arg1: tensor<f32>) {
      return
    }
    
    // CHECK-LABEL: removes_all_args
    func.func @removes_all_args(%arg0: tensor<f32>, %arg1: tensor<f32>) {
      // CHECK: call{{.*}}() :
      func.call @f(%arg0, %arg1) : (tensor<f32>, tensor<f32>) -> ()
      return
    }
    
    // -----
    
    // CHECK-LABEL: handles_mlprogram
    // CHECK-SAME: () {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 06 23:00:44 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

      func.func @convert(%arg0: tensor<2xi32>) -> tensor<2xf32> {
        // CHECK: mhlo.convert %arg0 : (tensor<2xi32>) -> tensor<2xf32>
        %0 = "tf.Cast"(%arg0) {Truncate = false} : (tensor<2xi32>) -> tensor<2xf32>
        func.return %0 : tensor<2xf32>
      }
    
      // CHECK-LABEL: func @constant
      func.func @constant(%arg0: tensor<f32>) -> tensor<f32> {
        // CHECK: %[[ONE:.*]] = mhlo.constant dense<1.000000e+00> : tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (1)
  7. src/internal/types/testdata/spec/range.go

    type MyString string
    type MyFunc1 func(func(int) bool)
    type MyFunc2 func(int) bool
    type MyFunc3 func(MyFunc2)
    
    type T struct{}
    
    func (*T) PM() {}
    func (T) M()   {}
    
    func f1()                             {}
    func f2(func())                       {}
    func f4(func(int) bool)               {}
    func f5(func(int, string) bool)       {}
    func f7(func(int) MyBool)             {}
    func f8(func(MyInt, MyString) MyBool) {}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 04:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. 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)
  9. test/inline.go

    // any re-assignment prevents closure inlining
    func m() int {
    	foo := func() int { return 1 } // ERROR "can inline m.func1" "func literal does not escape"
    	x := foo()
    	foo = func() int { return 2 } // ERROR "can inline m.func2" "func literal does not escape"
    	return x + foo()
    }
    
    // address taking prevents closure inlining
    func n() int {
    	foo := func() int { return 1 } // ERROR "can inline n.func1" "func literal does not escape"
    	bar := &foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  10. src/runtime/os_wasm.go

    // TODO: Make this a compiler intrinsic
    func getfp() uintptr { return 0 }
    
    func setProcessCPUProfiler(hz int32) {}
    func setThreadCPUProfiler(hz int32)  {}
    func sigdisable(uint32)              {}
    func sigenable(uint32)               {}
    func sigignore(uint32)               {}
    
    // Stubs so tests can link correctly. These should never be called.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top