Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of about 10,000 for FUNC (0.06 sec)

  1. 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)
  2. 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)
  3. src/go/printer/testdata/declarations.input

    // ellipsis parameters
    func _(...int)
    func _(...*int)
    func _(...[]int)
    func _(...struct{})
    func _(bool, ...interface{})
    func _(bool, ...func())
    func _(bool, ...func(...int))
    func _(bool, ...map[string]int)
    func _(bool, ...chan int)
    
    func _(b bool, x ...int)
    func _(b bool, x ...*int)
    func _(b bool, x ...[]int)
    func _(b bool, x ...struct{})
    func _(x ...interface{})
    func _(x ...func())
    func _(x ...func(...int))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.5K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tensorflow/tests/executor_tpuv1_outline_island/case_op.mlir

    // RUN: tf-opt %s -tf-executor-tpu-v1-island-outlining | FileCheck %s
    
    // CHECK: func @control_input
    // CHECK-NOT: func @
    // CHECK-LABEL: module @_tpu_v1_compat_outlined
    // CHECK: @_tpu_v1_compat_outlined_func0
    // CHECK: func @branch_0
    // CHECK: func @branch_1
    // CHECK: func @branch_2
    // CHECK: func @branch_3
    // CHECK: func @branch_4
    module {
      func.func @control_input(%arg0: tensor<i1>) -> tensor<i32> {
        %0 = tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 27 16:14:17 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. src/go/printer/testdata/declarations.golden

    // ellipsis parameters
    func _(...int)
    func _(...*int)
    func _(...[]int)
    func _(...struct{})
    func _(bool, ...interface{})
    func _(bool, ...func())
    func _(bool, ...func(...int))
    func _(bool, ...map[string]int)
    func _(bool, ...chan int)
    
    func _(b bool, x ...int)
    func _(b bool, x ...*int)
    func _(b bool, x ...[]int)
    func _(b bool, x ...struct{})
    func _(x ...interface{})
    func _(x ...func())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 13 22:24:31 UTC 2021
    - 16.2K bytes
    - Viewed (0)
  10. 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)
Back to top