Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 206 for func10 (0.09 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/merge_node_with_function.pbtxt

      input: "input"
      input: "input"
      attr {
        key: "T"
        value {
          type: DT_BOOL
        }
      }
    }
    node {
      name: "func0"
      op: "func_name"
      input: "Switch0:1"
    }
    node {
      name: "Merge"
      op: "Merge"
      input: "Switch0:1"
      input: "Switch0"
      input: "^func0"
      attr {
        key: "N"
        value {
          i: 2
        }
      }
      attr {
        key: "T"
        value {
          type: DT_BOOL
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 14 20:47:36 UTC 2021
    - 1K bytes
    - Viewed (0)
  2. test/func5.go

    func add(x, y int) int {
    	return x + y
    }
    
    func fn() func(int, int) int {
    	return f
    }
    
    var fc func(int, int, chan int)
    
    func addc(x, y int, c chan int) {
    	c <- x+y
    }
    
    func fnc() func(int, int, chan int) {
    	return fc
    }
    
    func three(x int) {
    	if x != 3 {
    		println("wrong val", x)
    		panic("fail")
    	}
    }
    
    var notmain func()
    
    func emptyresults() {}
    func noresults()    {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 1.5K bytes
    - Viewed (0)
  3. test/func6.go

    // license that can be found in the LICENSE file.
    
    // Test closures in if conditions.
    
    package main
    
    func main() {
    	if func() bool { return true }() {}  // gc used to say this was a syntax error
    	if (func() bool { return true })() {}
    	if (func() bool { return true }()) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 393 bytes
    - Viewed (0)
  4. src/text/template/funcs.go

    	return m
    }
    
    // addValueFuncs adds to values the functions in funcs, converting them to reflect.Values.
    func addValueFuncs(out map[string]reflect.Value, in FuncMap) {
    	for name, fn := range in {
    		if !goodName(name) {
    			panic(fmt.Errorf("function name %q is not a valid identifier", name))
    		}
    		v := reflect.ValueOf(fn)
    		if v.Kind() != reflect.Func {
    			panic("value for " + name + " not a function")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  5. test/func3.go

    // Verify that illegal function signatures are detected.
    // Does not compile.
    
    package main
    
    type t1 int
    type t2 int
    type t3 int
    
    func f1(*t2, x t3)	// ERROR "named"
    func f2(t1, *t2, x t3)	// ERROR "named"
    func f3() (x int, *string)	// ERROR "named"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 505 bytes
    - Viewed (0)
  6. test/func4.go

    // license that can be found in the LICENSE file.
    
    // Verify that it is illegal to take the address of a function.
    // Does not compile.
    
    package main
    
    var notmain func()
    
    func main() {
    	var x = &main		// ERROR "address of|invalid"
    	main = notmain	// ERROR "assign to|invalid"
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 409 bytes
    - Viewed (0)
  7. test/func7.go

    // license that can be found in the LICENSE file.
    
    // Test evaluation order in if condition.
    
    package main
    
    var calledf = false
    
    func f() int {
    	calledf = true
    	return 1
    }
    
    func g() int {
    	if !calledf {
    		panic("BUG: func7 - called g before f")
    	}
    	return 0
    }
    
    func main() {
    	// gc used to evaluate g() before f().
    	if f() < g() {
    		panic("wrong answer")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 477 bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetLinkDependenciesIntegrationTest.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/cpp1/func1.cpp") << """
                int getOne();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. test/escape4.go

    	f = func() { // ERROR "func literal escapes to heap" "can inline f1.func2"
    		p = alloc(3) // ERROR "inlining call to alloc" "moved to heap: x"
    	}
    	f()
    }
    
    func f2() {} // ERROR "can inline f2"
    
    // No inline for recover; panic now allowed to inline.
    func f3() { panic(1) } // ERROR "can inline f3" "1 escapes to heap"
    func f4() { recover() }
    
    func f5() *byte { // ERROR "can inline f5"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 19:43:26 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/trampoline_reuse_test.txt

    # assembly 2^26 or so times.
    #
    # We build something which should be laid out as such:
    #
    # bar.Bar
    # main.Func1
    # bar.Bar+400-tramp0
    # main.BigAsm
    # main.Func2
    # bar.Bar+400-tramp1
    #
    # bar.Bar needs to be placed far enough away to generate relocations
    # from main package calls. and main.Func1 and main.Func2 are placed
    # a bit more than the direct call limit apart, but not more than 0x400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 14:31:23 UTC 2022
    - 2.7K bytes
    - Viewed (0)
Back to top