Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 3,335 for FUNC (0.09 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf_executor_ops.mlir

    // RUN: tf-opt %s | tf-opt | FileCheck %s
    
    // CHECK-LABEL: func private @control_type() -> !tf_executor.control
    func.func private @control_type() -> !tf_executor.control
    
    // CHECK-LABEL: func private @token_type() -> !tf_executor.token
    func.func private @token_type() -> !tf_executor.token
    
    // CHECK-LABEL: func @empty_graph
    func.func @empty_graph() {
      tf_executor.graph {
      }
      func.return
    
    // CHECK:      tf_executor.graph {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 25.8K 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/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)
  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. 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)
  6. 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)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo.mlir

    // test stablehlo roundtrip
    
    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    //CHECK:func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> attributes {tf.entry_function = {inputs = "arg0", outputs = "arg0"}} {
    //CHECK: return %arg0 : tensor<4xi8>
    //CHECK:}
    
    func.func @logistic(%arg0: tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  10. 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)
Back to top