Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for test_func (0.14 sec)

  1. src/cmd/nm/nm_test.go

    	testGoLib(t, false)
    }
    
    const testexec = `
    package main
    
    import "fmt"
    {{if .}}import "C"
    {{end}}
    
    func main() {
    	testfunc()
    }
    
    var testdata uint32
    
    func testfunc() {
    	fmt.Printf("main=%p\n", main)
    	fmt.Printf("testfunc=%p\n", testfunc)
    	fmt.Printf("testdata=%p\n", &testdata)
    }
    `
    
    const testlib = `
    package mylib
    
    {{if .}}
    // int cgodata = 5;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 23:32:34 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. test/fixedbugs/bug447.go

    				ftype := fmt.Sprintf("float%d", fWidth)
    				seg := strings.Replace(testSegment, "$F", ftype, -1)
    				seg = strings.Replace(seg, "$I", itype, -1)
    				segs.WriteString(seg)
    			}
    			body := strings.Replace(testFunc, "$I", itype, -1)
    			if typ[0] == 'u' {
    				body = strings.Replace(body, "$TEST", " || i < 0", 1)
    			} else {
    				body = strings.Replace(body, "$TEST", "", 1)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_remaining_ops.cc

      }
    
      func::FuncOp func = module_for_func->lookupSymbol<func::FuncOp>("host_func");
      if (!func)
        return op.emitError()
               << "serialized module in attribute 'host_mlir_module' does not "
                  "contain 'host_func' function.";
    
      if (op->getNumOperands() != func.getFunctionType().getNumInputs())
        return op.emitError()
               << "'host_func' has " << func.getFunctionType().getNumInputs()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 20:05:58 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/test/testdata/gen/arithBoundaryGen.go

    		fmt.Fprintf(w, "  a,b int%d\n", sz)
    		fmt.Fprintf(w, "  add,sub,mul,div,mod int%d\n", sz)
    		fmt.Fprintf(w, "}\n")
    	}
    
    	// the function being tested
    	testFunc, err := template.New("testFunc").Parse(
    		`//go:noinline
    		func {{.Name}}_{{.Stype}}_ssa(a, b {{.Stype}}) {{.Stype}} {
    	return a {{.SymFirst}} b
    }
    `)
    	if err != nil {
    		panic(err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/prepare_tpu_computation_for_tf_export.mlir

      // CHECK-SAME: recv_key = "host_compute_channel_recv"
      // CHECK-SAME: send_key = "host_compute_channel_send"
      // CHECK-SAME: shape_inference_graph = @host_func
      // CHECK-SAME: shapes = [#tf_type.shape<*>, #tf_type.shape<3x?>]
      // CHECK-SAME: tpu_core = 0 : i64
      // CHECK: func @host_func
      // CHECK: %[[RECV_OUTPUT:[0-9]*]]:2 = "tf._XlaRecvAtHost"
      // CHECK-SAME: key = "host_compute_channel_send"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 18:46:36 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  6. test/rangegen.go

    					code0 := gen(b, "testFunc"+s, "", "yield2", i, double, func(c int) bool { return c == j || c == k })
    					code1 := gen(b, "testSlice"+s, "_, ", "slice2", i, double, func(c int) bool { return c == j || c == k })
    					if code0 != code1 {
    						panic("bad generator")
    					}
    					tests += "test" + s + "()\n"
    					p(b, testCode, "test"+s, []int{j, k}, "testFunc"+s, "testSlice"+s)
    					flush(false)
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 23:35:19 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-control-ret-same-island.pbtxt

        key: "Tout"
        value {
          list {
            type: DT_FLOAT
          }
        }
      }
      attr {
        key: "f"
        value {
          func {
            name: "test_fn"
          }
        }
      }
    }
    library {
      function {
        signature {
          name: "test_fn"
          input_arg {
            name: "a"
            type: DT_FLOAT
          }
          output_arg {
            name: "c"
            type: DT_FLOAT
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 10 19:53:21 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/storage/api_object_versioner_test.go

    		{Version: " ", Err: true},
    		{Version: "1", ExpectVersion: 1},
    		{Version: "10", ExpectVersion: 10},
    	}
    
    	v := APIObjectVersioner{}
    	testFuncs := []func(string) (uint64, error){
    		v.ParseResourceVersion,
    	}
    
    	for _, testCase := range testCases {
    		for i, f := range testFuncs {
    			version, err := f(testCase.Version)
    			switch {
    			case testCase.Err && err == nil:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 11 16:18:15 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/teststdio/testdata/hello.go

    // Copyright 2009 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build test_run
    
    package main
    
    import "cgostdio/stdio"
    
    func main() {
    	stdio.Stdout.WriteString(stdio.Greeting + "\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 285 bytes
    - Viewed (0)
  10. src/html/template/multi_test.go

    	{"variable declared by template", `{{template "nested" $x:=.SI}},{{index $x 1}}`, "[3 4 5],4", tVal, true},
    
    	// User-defined function: test argument evaluator.
    	{"testFunc literal", `{{oneArg "joe"}}`, "oneArg=joe", tVal, true},
    	{"testFunc .", `{{oneArg .}}`, "oneArg=joe", "joe", true},
    }
    
    // These strings are also in testdata/*.
    const multiText1 = `
    	{{define "x"}}TEXT{{end}}
    	{{define "dotV"}}{{.V}}{{end}}
    `
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
Back to top