Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 3,782 for _func (0.04 sec)

  1. src/debug/buildinfo/buildinfo_test.go

    		}
    		return outPath
    	}
    
    	buildWithGOPATH := func(t *testing.T, goos, goarch, buildmode string) string {
    		gopathDir := t.TempDir()
    		pkgDir := filepath.Join(gopathDir, "src/example.com/m")
    		if err := os.MkdirAll(pkgDir, 0777); err != nil {
    			t.Fatal(err)
    		}
    		helloPath := filepath.Join(pkgDir, "hello.go")
    		helloData := []byte("package main\nfunc main() {}\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  2. tensorflow/c/kernels.cc

          break;
    
        case tensorflow::AttrValue::kFunc:
          *list_size = -1;
          *total_size = -1;
          break;
    
        case tensorflow::AttrValue::VALUE_NOT_SET:
          status->status = absl::InvalidArgumentError(
              absl::StrCat("Attribute '", attr_name, "' has no value set"));
          break;
      }
    }
    
    #define DEFINE_TF_GETATTR(func, c_type, cc_type, attr_type, list_field)        \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  3. tensorflow/cc/experimental/libtf/object.h

    // starts as a list of argument types and ends empty. The static member
    // template starts empty and ends with the unerased types of the signature.
    
    // Base case (all arguments are processed, so call the function TFunc.
    template <class Fn, typename TReturn>
    class UneraseCallHelper<Fn, TReturn> {
     public:
      template <typename... ArgsOut>
      static tensorflow::StatusOr<TaggedValue> Call(const char* name, Fn functor_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        llvm::StringRef name;
        mlir::func::FuncOp func;
      };
      llvm::SmallVector<NamedFunc, 8> named_funcs;
      llvm::SmallVector<mlir::func::FuncOp, 8> private_funcs;
      for (auto func : module.getOps<mlir::func::FuncOp>()) {
        auto exported_names = mlir::tf_saved_model::GetExportedNames(func);
        if (!exported_names.empty())
          named_funcs.push_back({exported_names.front(), func});
        else
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/ppc64/obj9.go

    	} else {
    		return
    	}
    	obj.Nopout(p)
    }
    
    func preprocess(ctxt *obj.Link, cursym *obj.LSym, newprog obj.ProgAlloc) {
    	// TODO(minux): add morestack short-cuts with small fixed frame-size.
    	if cursym.Func().Text == nil || cursym.Func().Text.Link == nil {
    		return
    	}
    
    	c := ctxt9{ctxt: ctxt, cursym: cursym, newprog: newprog}
    
    	p := c.cursym.Func().Text
    	textstksiz := p.To.Offset
    	if textstksiz == -8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/assign.go

    	return early
    }
    
    // readsMemory reports whether the evaluation n directly reads from
    // memory that might be written to indirectly.
    func readsMemory(n ir.Node) bool {
    	switch n.Op() {
    	case ir.ONAME:
    		n := n.(*ir.Name)
    		if n.Class == ir.PFUNC {
    			return false
    		}
    		return n.Addrtaken() || !n.OnStack()
    
    	case ir.OADD,
    		ir.OAND,
    		ir.OANDAND,
    		ir.OANDNOT,
    		ir.OBITNOT,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  7. src/internal/testenv/testenv_test.go

    	if err := os.WriteFile(mainGo, []byte("package main\nfunc main() {}\n"), 0644); err != nil {
    		t.Fatal(err)
    	}
    	cmd := testenv.Command(t, "go", "build", "-o", os.DevNull, mainGo)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("%v: %v\n%s", cmd, err, out)
    	}
    }
    
    func TestMustHaveExec(t *testing.T) {
    	hasExec := false
    	t.Run("MustHaveExec", func(t *testing.T) {
    		testenv.MustHaveExec(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typebits/typebits.go

    // on future calls with the same type t.
    func Set(t *types.Type, off int64, bv bitvec.BitVec) {
    	set(t, off, bv, false)
    }
    
    // SetNoCheck is like Set, but do not check for alignment.
    func SetNoCheck(t *types.Type, off int64, bv bitvec.BitVec) {
    	set(t, off, bv, true)
    }
    
    func set(t *types.Type, off int64, bv bitvec.BitVec, skip bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. src/cmd/cgo/internal/testerrors/ptr_test.go

    			}
    		}
    	}
    
    	// Func support and bodies.
    	for _, pt := range ptrTests {
    		cgo := &cgo1
    		if strings.Contains(pt.support, "//export") {
    			cgo = &cgo2
    		}
    		fmt.Fprintf(cgo, "%s\nfunc %s() {\n%s\n}\n", pt.support, pt.name, pt.body)
    	}
    
    	// Func list and main dispatch.
    	fmt.Fprintf(&cgo1, "var funcs = map[string]func() {\n")
    	for _, pt := range ptrTests {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/staticdata/data.go

    var (
    	funcsymsmu sync.Mutex // protects funcsyms and associated package lookups (see func funcsym)
    	funcsyms   []*ir.Name // functions that need function value symbols
    )
    
    // FuncLinksym returns n·f, the function value symbol for n.
    func FuncLinksym(n *ir.Name) *obj.LSym {
    	if n.Op() != ir.ONAME || n.Class != ir.PFUNC {
    		base.Fatalf("expected func name: %v", n)
    	}
    	s := n.Sym()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:08:50 UTC 2023
    - 10.3K bytes
    - Viewed (0)
Back to top