Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 3,247 for FUNC (0.14 sec)

  1. src/runtime/race/testdata/chan_test.go

    	go func() {
    		v = 1
    		c <- 0
    	}()
    	<-c
    	v = 2
    }
    
    func TestRaceChanAsyncRev(t *testing.T) {
    	v := 0
    	_ = v
    	c := make(chan int, 10)
    	go func() {
    		c <- 0
    		v = 1
    	}()
    	v = 2
    	<-c
    }
    
    func TestNoRaceChanAsyncCloseRecv(t *testing.T) {
    	v := 0
    	_ = v
    	c := make(chan int, 10)
    	go func() {
    		v = 1
    		close(c)
    	}()
    	func() {
    		defer func() {
    			recover()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 19:55:29 UTC 2023
    - 11K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/functional-control-flow-to-regions.mlir

      func.return %0 : tensor<2xf32>
    }
    
    // -----
    
    // If with no outputs, some inputs
    // CHECK: func private @testIf1Then{{.+}}
    // CHECK: func private @testIf1Else{{.+}}
    func.func private @testIf1Then(tensor<*xf32>) -> ()
    func.func private @testIf1Else(tensor<*xf32>) -> ()
    
    // CHECK-LABEL: func @testIfNoResult(%arg0: tensor<i1>, %arg1: tensor<2xf32>)
    func.func @testIfNoResult(%arg0: tensor<i1>, %arg1: tensor<2xf32>) -> () {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 06 21:59:28 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  3. src/go/parser/short_test.go

    	`package p;`,
    	`package p; import "fmt"; func f() { fmt.Println("Hello, World!") };`,
    	`package p; func f() { if f(T{}) {} };`,
    	`package p; func f() { _ = <-chan int(nil) };`,
    	`package p; func f() { _ = (<-chan int)(nil) };`,
    	`package p; func f() { _ = (<-chan <-chan int)(nil) };`,
    	`package p; func f() { _ = <-chan <-chan <-chan <-chan <-int(nil) };`,
    	`package p; func f(func() func() func());`,
    	`package p; func f(...T);`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/constants_offset.mlir

      func.return %0 : tensor<4xcomplex<f64>>
    }
    
    func.func @f16() -> tensor<4xf16> {
      // CHECK-LABEL: @f16
      // CHECK: value = dense<[1.000000e+00, 2.000000e+00, 3.000000e+00, 4.000000e+00]> : tensor<4xf16>
      %0 = "tfl.pseudo_const"() { value = dense<[1.0, 2.0, 3.0, 4.0]> : tensor<4xf16> } : () -> tensor<4xf16>
      func.return %0 : tensor<4xf16>
    }
    
    func.func @f32() -> tensor<4xf32> {
      // CHECK-LABEL: @f32
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  5. test/escape2.go

    		return x
    	}
    }
    
    func foo23a(x int) func() int {
    	f := func() int { // ERROR "func literal escapes to heap$"
    		return x
    	}
    	return f
    }
    
    func foo23b(x int) *(func() int) {
    	f := func() int { return x } // ERROR "func literal escapes to heap$" "moved to heap: f$"
    	return &f
    }
    
    func foo23c(x int) func() int { // ERROR "moved to heap: x$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/constant-fold.mlir

      func.return %1 : tensor<5xi64>
    }
    
    // CHECK-LABEL: func @testEmptyFloat
    func.func @testEmptyFloat() -> (tensor<5xf64>) {
      %0 = "tf.Const"() { value = dense<5> : tensor<i32> } : () -> tensor<i32>
    
      // CHECK: [[VAL:%.+]] = "tf.Const"() <{value =  dense<0.000000e+00> : tensor<5xf64>}>
      // CHECK: return [[VAL]]
      %1 = "tf.Empty"(%0) : (tensor<i32>) -> (tensor<5xf64>)
      func.return %1 : tensor<5xf64>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 23:22:24 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/freeze_variables.mlir

      func.func private @f_callee_callee(%arg0: tensor<*x!tf_type.resource>) -> tensor<0xf32> {
        %0 = "tf.PartitionedCall"(%arg0) {config = "", config_proto = "", executor_type = "", f = @f_callee_callee} : (tensor<*x!tf_type.resource>) -> (tensor<0xf32>)
        func.return %0 : tensor<0xf32>
      }
    }
    
    // -----
    
    // Test If Region immutable case.
    
    module {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tpu_sharding_identification.mlir

    // CHECK-LABEL: func @check_sharding_attrs_exists_for_empty_cluster_func
    func.func @check_sharding_attrs_exists_for_empty_cluster_func() {
      "tf_device.cluster_func"() {func = @empty_func, step_marker_location = "", num_cores_per_replica = 1 : i64} : () -> ()
      // CHECK: input_sharding_configuration = []
      // CHECK: output_sharding_configuration = []
      func.return
    }
    
    // CHECK-LABEL: func @empty_func() {
    func.func @empty_func() {
      func.return
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 20 19:07:52 UTC 2024
    - 47.5K bytes
    - Viewed (0)
  9. src/testing/sub_test.go

        `,
    		f: func(t *T) {
    			ranSeq := false
    			ranPar := false
    			t.Run("", func(t *T) {
    				t.Run("par", func(t *T) {
    					t.Parallel()
    					ranPar = true
    				})
    				t.Run("seq", func(t *T) {
    					ranSeq = true
    				})
    				t.FailNow()
    				t.Run("seq", func(t *T) {
    					realTest.Error("test must be skipped")
    				})
    				t.Run("par", func(t *T) {
    					t.Parallel()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 01 21:27:08 UTC 2023
    - 23.8K bytes
    - Viewed (0)
  10. src/cmd/link/internal/loader/symbolbuilder.go

    func (sb *SymbolBuilder) Type() sym.SymKind      { return sb.kind }
    func (sb *SymbolBuilder) Size() int64            { return sb.size }
    func (sb *SymbolBuilder) Data() []byte           { return sb.data }
    func (sb *SymbolBuilder) Value() int64           { return sb.l.SymValue(sb.symIdx) }
    func (sb *SymbolBuilder) Align() int32           { return sb.l.SymAlign(sb.symIdx) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 15:25:19 UTC 2023
    - 13.9K bytes
    - Viewed (0)
Back to top