Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for func (0.11 sec)

  1. src/cmd/compile/internal/ir/func.go

    	fn.SetTypecheck(1)
    
    	name.Func = fn
    
    	return fn
    }
    
    func (f *Func) isStmt() {}
    
    func (n *Func) copy() Node                                  { panic(n.no("copy")) }
    func (n *Func) doChildren(do func(Node) bool) bool          { return doNodes(n.Body, do) }
    func (n *Func) editChildren(edit func(Node) Node)           { editNodes(n.Body, edit) }
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-23 01:05
    - 21.1K bytes
    - Viewed (0)
  2. 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: 2024-06-16 05:45
    - Last Modified: 2024-02-19 06:55
    - 2K bytes
    - Viewed (0)
  3. src/cmd/cover/func.go

    			startLine: start.Line,
    			startCol:  start.Column,
    			endLine:   end.Line,
    			endCol:    end.Column,
    		}
    		v.funcs = append(v.funcs, fe)
    	}
    	return v
    }
    
    // coverage returns the fraction of the statements in the function that were covered, as a numerator and denominator.
    func (f *FuncExtent) coverage(profile *cover.Profile) (num, den int64) {
    Registered: 2024-06-12 16:32
    - Last Modified: 2022-05-02 17:49
    - 6.3K bytes
    - Viewed (0)
  4. 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: 2024-06-12 16:32
    - Last Modified: 2023-05-22 17:47
    - 2.9K bytes
    - Viewed (0)
  5. 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: 2024-06-12 16:32
    - Last Modified: 2012-02-19 03:28
    - 1.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/func.go

    }
    func (f *Func) ConstInt32(t *types.Type, c int32) *Value {
    	return f.constVal(OpConst32, t, int64(c), true)
    }
    func (f *Func) ConstInt64(t *types.Type, c int64) *Value {
    	return f.constVal(OpConst64, t, c, true)
    }
    func (f *Func) ConstFloat32(t *types.Type, c float64) *Value {
    	return f.constVal(OpConst32F, t, int64(math.Float64bits(float64(float32(c)))), true)
    }
    func (f *Func) ConstFloat64(t *types.Type, c float64) *Value {
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-06-10 19:44
    - 25.8K bytes
    - Viewed (0)
  7. 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: 2024-06-16 05:45
    - Last Modified: 2024-02-19 06:55
    - 1.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/func.go

    // (Call typecheck.Func instead.)
    func tcFunc(n *ir.Func) {
    	if base.EnableTrace && base.Flag.LowerT {
    		defer tracePrint("tcFunc", n)(nil)
    	}
    
    	if name := n.Nname; name.Typecheck() == 0 {
    		base.AssertfAt(name.Type() != nil, n.Pos(), "missing type: %v", name)
    		name.SetTypecheck(1)
    	}
    }
    
    // tcCall typechecks an OCALL node.
    func tcCall(n *ir.CallExpr, top int) ir.Node {
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-03-06 15:23
    - 21.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/func-attr.mlir

    // CHECK-LABEL: func @func_attr
    // CHECK-SAME: tf._implements = #tf_type.func<@symbol_a, {attr0 = 1 : i32, attr1 = "random"}>
    func.func @func_attr() attributes {tf._implements = #tf_type.func<@symbol_a, {attr0 = 1 : i32, attr1 = "random"}>} {
      func.return
    }
    
    // CHECK-LABEL: func @nested_func_attr
    Registered: 2024-06-16 05:45
    - Last Modified: 2022-03-28 12:06
    - 725 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/func-attr-invalid.mlir

    func.func @main() attributes {tf._implements = #tf_type.func<@symbol>} {
      func.return
    }
    
    // -----
    
    // expected-error@+1 {{expected symbol while parsing tf.func attribute}}
    func.func @main() attributes {tf._implements = #tf_type.func<{}>} {
      func.return
    }
    
    // -----
    
    // expected-error@+1 {{expected empty string or symbol while parsing tf.func attribute}}
    Registered: 2024-06-16 05:45
    - Last Modified: 2022-05-06 09:05
    - 1.2K bytes
    - Viewed (0)
Back to top