Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for Func1 (0.04 sec)

  1. test/func1.go

    Robert Griesemer <******@****.***> 1607048150 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 04 21:22:23 UTC 2020
    - 445 bytes
    - Viewed (0)
  2. test/typeparam/issue50485.dir/a.go

    	if r.IsDefined() {
    		return r
    	}
    	t := f()
    	return Option[T]{&t}
    }
    
    type Func1[A1, R any] func(a1 A1) R
    
    type Func2[A1, A2, R any] func(a1 A1, a2 A2) R
    
    func (r Func2[A1, A2, R]) Curried() Func1[A1, Func1[A2, R]] {
    	return func(a1 A1) Func1[A2, R] {
    		return Func1[A2, R](func(a2 A2) R {
    			return r(a1, a2)
    		})
    	}
    }
    
    type HList interface {
    	sealed()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/tests/fold-constants-to-subgraph.mlir

      %2 = func.call @simple_test(%arg0, %0, %1) {tac.interface_name = "func1"} : (tensor<4x384x32xf32>, tensor<3xi32>, tensor<3xi32>) -> tensor<1x384x32xf32>
      func.return %2 : tensor<1x384x32xf32>
    }
    
    // PARTIAL-LABEL: @simple_test
    func.func @simple_test(%arg0: tensor<4x384x32xf32>, %arg1: tensor<3xi32>, %arg2: tensor<3xi32>) -> tensor<1x384x32xf32> attributes {tac.interface_name = "func1"} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetCompileDependenciesIntegrationTest.groovy

            file("src/main/headers/funcs.h") << """
                int func1();
                int func2();
    """
            file("src/main/cpp/main.cpp") << """
                #include <iostream>
                #include "funcs.h"
                int main () {
                    std::cout << func1() << func2() << std::endl;
                    return 0;
                }
    """
            file("src/main/cpp/func1.cpp") << """
                #include "lib.h"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. src/go/doc/example_test.go

    	Type1_foo int
    	type2     int
    
    	Embed struct { Type1 }
    	Uembed struct { type2 }
    )
    
    func Func1()     {}
    func Func1_Foo() {}
    func Func1_foo() {}
    func func2()     {}
    
    func (Type1) Func1() {}
    func (Type1) Func1_Foo() {}
    func (Type1) Func1_foo() {}
    func (Type1) func2() {}
    
    func (type2) Func1() {}
    
    type (
    	Conflict          int
    	Conflict_Conflict int
    	Conflict_conflict int
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  6. test/fixedbugs/issue54159.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func run() { // ERROR "cannot inline run: recursive"
    	f := func() { // ERROR "can inline run.func1 with cost .* as:.*" "func literal does not escape"
    		g() // ERROR "inlining call to g"
    	}
    	f() // ERROR "inlining call to run.func1" "inlining call to g"
    	run()
    }
    
    func g() { // ERROR "can inline g with cost .* as:.*"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jan 28 04:29:02 UTC 2023
    - 586 bytes
    - Viewed (0)
  7. test/codegen/issue60324.go

    	g(2)()
    
    	// amd64:"LEAQ\tcommand-line-arguments\\.main\\.h\\.func1"
    	h(3)()
    
    	// amd64:"LEAQ\tcommand-line-arguments\\.main\\.f\\.g\\.h\\.func4"
    	f(4)()
    }
    
    func f(x int) func() {
    	// amd64:"LEAQ\tcommand-line-arguments\\.f\\.g\\.h\\.func1"
    	return g(x)
    }
    
    func g(x int) func() {
    	// amd64:"LEAQ\tcommand-line-arguments\\.g\\.h\\.func1"
    	return h(x)
    }
    
    func h(x int) func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 22:47:15 UTC 2023
    - 805 bytes
    - Viewed (0)
  8. test/inline.go

    }
    
    func q(x int) int { // ERROR "can inline q"
    	foo := func() int { return x * 2 } // ERROR "can inline q.func1" "func literal does not escape"
    	return foo()                       // ERROR "inlining call to q.func1"
    }
    
    func r(z int) int {
    	foo := func(x int) int { // ERROR "can inline r.func1" "func literal does not escape"
    		return x + z
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  9. test/newinline.go

    }
    
    func q(x int) int { // ERROR "can inline q"
    	foo := func() int { return x * 2 } // ERROR "can inline q.func1" "func literal does not escape"
    	return foo()                       // ERROR "inlining call to q.func1"
    }
    
    func r(z int) int { // ERROR "can inline r"
    	foo := func(x int) int { // ERROR "can inline r.func1" "func literal does not escape"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 20:15:25 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testsanitizers/testdata/tsan3.go

    /*
    #cgo CFLAGS: -fsanitize=thread
    #cgo LDFLAGS: -fsanitize=thread
    
    int Func1() {
    	return 0;
    }
    
    void Func2(int x) {
    	(void)x;
    }
    */
    import "C"
    
    func main() {
    	const N = 10000
    	done := make(chan bool, N)
    	for i := 0; i < N; i++ {
    		go func() {
    			C.Func1()
    			done <- true
    		}()
    		go func() {
    			C.Func2(0)
    			done <- true
    		}()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 662 bytes
    - Viewed (0)
Back to top