- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 209 for recursion (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/analysis/resource_value_typed_analyzer.cc
// written". Do this recursively across the chain of regions via call or // control flow ops. // TODO(ashwinm): Move to iterative traversal. LogicalResult ResourceAnalyzer::AnalyzeRegion(Region& region) { // Avoid infinite recursion. if (!discovered_.insert(®ion).second) { return success(); } region.walk([&](Operation* op) { if (isa<TF::ReadVariableOp, func::ReturnOp, YieldOp>(op)) { return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 09:04:13 UTC 2024 - 8K bytes - Viewed (0) -
src/cmd/compile/internal/ir/visit.go
// IR visitors for walking the IR tree. // // The lowest level helpers are DoChildren and EditChildren, which // nodes help implement and provide control over whether and when // recursion happens during the walk of the IR. // // Although these are both useful directly, two simpler patterns // are fairly common and also provided: Visit and Any. package ir
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 23 14:29:16 UTC 2023 - 6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go
if tset, ok := seen[t]; ok { if !tset.complete { return nil, fmt.Errorf("cycle detected in the declaration of %s", t) } return tset, nil } // Mark the current type as seen to avoid infinite recursion. tset := new(termSet) defer func() { tset.complete = true }() seen[t] = tset switch u := t.Underlying().(type) { case *types.Interface:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 6.7K bytes - Viewed (0) -
src/internal/testenv/exec.go
// current executable, which must be a binary built by 'go test'. // We intentionally do not provide a HasExec function because of the risk of // inappropriate recursion in TestMain functions. // // To check for exec support outside of a test, just try to exec the command. // If exec is not supported, testenv.SyscallIsNotSupported will return true // for the resulting error.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 27 17:53:23 UTC 2023 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
unused_results.set(i); } // Now mark all args for deletion that don't have uses anymore. for (BlockArgument arg : func.getArguments()) { // TODO(b/246310765): This doesn't fully handle recursion. if (!use_count[arg.getArgNumber()]) unused_args.set(arg.getArgNumber()); } EraseReturnOperands(region, unused_results); func.eraseResults(unused_results); func.eraseArguments(unused_args);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
src/testing/fstest/mapfs.go
file = &MapFile{Mode: fs.ModeDir | 0555} } return &mapDir{name, mapFileInfo{elem, file}, list, 0}, nil } // fsOnly is a wrapper that hides all but the fs.FS methods, // to avoid an infinite recursion when implementing special // methods in terms of helpers that would use them. // (In general, implementing these methods using the package fs helpers // is redundant and unnecessary, but having the methods may make
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 7.1K bytes - Viewed (0) -
src/internal/pkgbits/encoder.go
if !w.p.SyncMarkers() { return } // Writing out stack frame string references requires working // relocations, but writing out the relocations themselves involves // sync markers. To prevent infinite recursion, we simply trim the // stack frame for sync markers within the relocation header. var frames []string if !w.encodingRelocHeader && w.p.syncFrames > 0 { pcs := make([]uintptr, w.p.syncFrames)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 10 23:26:58 UTC 2022 - 9.6K bytes - Viewed (0) -
src/path/filepath/match.go
volumeLen, dir = cleanGlobPathWindows(dir) } else { dir = cleanGlobPath(dir) } if !hasMeta(dir[volumeLen:]) { return glob(dir, file, nil) } // Prevent infinite recursion. See issue 15879. if dir == pattern { return nil, ErrBadPattern } var m []string m, err = globWithLimit(dir, depth+1) if err != nil { return } for _, d := range m {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.7K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/measurement/measurement.go
// the scaled value and the target unit. The returned target unit // will be empty if uninteresting (could be skipped). func Scale(value int64, fromUnit, toUnit string) (float64, string) { // Avoid infinite recursion on overflow. if value < 0 && -value > 0 { v, u := Scale(-value, fromUnit, toUnit) return -v, u } for _, ut := range UnitTypes { if v, u, ok := ut.convertUnit(value, fromUnit, toUnit); ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 8.8K bytes - Viewed (0) -
src/runtime/testdata/testprog/traceback_ancestors.go
if !main { ignoreGoroutines[goroutineID()] = true } // Start the next goroutine now that there are no more recursions left // for this current goroutine. go recurseThenCallGo(w, frames-1, numFrames, false) return } recurseThenCallGo(w, frames, goroutines-1, main) } func goroutineID() string { buf := make([]byte, 128) runtime.Stack(buf, false) prefix := []byte("goroutine ") var found bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 17:14:59 UTC 2022 - 2.1K bytes - Viewed (0)