Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,966 for vfunc (0.21 sec)

  1. src/cmd/go/testdata/script/cover_coverpkg_partial.txt

    func TestB(t *testing.T) {
    	if BFunc() == 1010101 {
    		t.Fatalf("bad!")
    	}
    }
    -- c/c.go --
    package c
    
    var G int
    
    func CFunc(x, y int) int {
    	G += x
    	G -= y
    	return x + y
    }
    -- c/c_test.go --
    package c
    
    import "testing"
    
    func TestC(t *testing.T) {
    	if CFunc(10, 10) == 1010101 {
    		t.Fatalf("bad!")
    	}
    }
    -- d/d.go --
    package d
    
    const FortyTwo = 42
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 20:12:49 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/cover_coverpkg_with_init.txt

    import (
    	"M/a"
    	"M/b"
    )
    
    func MFunc() string {
    	return "42"
    }
    
    func M2Func() int {
    	return a.AFunc() + b.BFunc()
    }
    
    func init() {
    	println("package 'main' init")
    }
    
    func main() {
    	println(a.AFunc() + b.BFunc())
    }
    -- main/main_test.go --
    package main
    
    import "testing"
    
    func TestMain(t *testing.T) {
    	if MFunc() != "42" {
    		t.Fatalf("bad!")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 30 12:33:44 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/cover_coverprofile_multipkg.txt

    }
    
    func init() {
    	println("package 'main' init")
    }
    
    func main() {
    	println(a.AFunc() + b.BFunc())
    }
    -- main/main_test.go --
    package main
    
    import "testing"
    
    func TestMain(t *testing.T) {
    	if MFunc() != "42" {
    		t.Fatalf("bad!")
    	}
    	if M2Func() != 0 {
    		t.Fatalf("also bad!")
    	}
    }
    -- n/n.go --
    package n
    
    type N int
    -- onlytest/mumble_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 17:02:36 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. test/ken/mfunc.go

    // license that can be found in the LICENSE file.
    
    // Test simple multi-argument multi-valued function.
    
    package main
    
    func
    main() {
    	var x,y int;
    
    	x,y = simple(10,20,30);
    	if x+y != 65 { panic(x+y); }
    }
    
    func
    simple(ia,ib,ic int) (oa,ob int) {
    	return ia+5, ib+ic;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 386 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/func.h

    #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_COMMON_FUNC_H_
    
    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    
    namespace mlir::quant {
    
    // Returns a public `func::FuncOp` in `module_op` whose name matches either
    // `main` or `serving_default`. If `func::FuncOps` with both names exist, the
    // function with name "main" takes precedence. Returns null if no such a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/cover/func.go

    //	fmt/format.go:57:	clearflags		100.0%
    //	...
    //	fmt/scan.go:1046:	doScan			100.0%
    //	fmt/scan.go:1075:	advance			96.2%
    //	fmt/scan.go:1119:	doScanf			96.8%
    //	total:		(statements)			91.9%
    
    func funcOutput(profile, outputFile string) error {
    	profiles, err := cover.ParseProfiles(profile)
    	if err != nil {
    		return err
    	}
    
    	dirs, err := findPkgs(profiles)
    	if err != nil {
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 17:49:12 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/func.cc

    // Returns true iff the function's symbol is public.
    bool IsPublicFuncOp(func::FuncOp func_op) {
      return SymbolTable::getSymbolVisibility(&*func_op) ==
             SymbolTable::Visibility::Public;
    }
    
    }  // namespace
    
    func::FuncOp FindMainFuncOp(ModuleOp module_op) {
      if (const auto main_func_op = module_op.lookupSymbol<func::FuncOp>(
              kImportModelDefaultGraphFuncName);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 19 06:55:11 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/convert_launch_func_to_tf_call.mlir

          // CHECK: tf_executor.yield %[[CALL_OUTPUT_1]]
          tf_executor.yield %4 : tensor<?xf32>
        }
        tf_executor.fetch %1#0 : tensor<?xf32>
      }
      func.return %0 : tensor<?xf32>
    }
    
    func.func @_func(%arg0: tensor<?xf32>) -> tensor<?xf32> {
      func.return %arg0 : tensor<?xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. src/syscall/js/func.go

    func (c Func) Release() {
    	funcsMu.Lock()
    	delete(funcs, c.id)
    	funcsMu.Unlock()
    }
    
    // setEventHandler is defined in the runtime package.
    func setEventHandler(fn func() bool)
    
    func init() {
    	setEventHandler(handleEvent)
    }
    
    // handleEvent retrieves the pending event (window._pendingEvent) and calls the js.Func on it.
    // It returns true if an event was handled.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 17:47:47 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. test/func.go

    // Test simple functions.
    
    package main
    
    func assertequal(is, shouldbe int, msg string) {
    	if is != shouldbe {
    		print("assertion fail", msg, "\n")
    		panic(1)
    	}
    }
    
    func f1() {
    }
    
    func f2(a int) {
    }
    
    func f3(a, b int) int {
    	return a + b
    }
    
    func f4(a, b int, c float32) int {
    	return (a+b)/2 + int(c)
    }
    
    func f5(a int) int {
    	return 5
    }
    
    func f6(a int) (r int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 03:28:53 UTC 2012
    - 1.3K bytes
    - Viewed (0)
Back to top