- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 415 for SWAP (0.05 sec)
-
tensorflow/c/checkpoint_reader.cc
if (!v2_reader_->status().ok()) { tsl::Set_TF_Status_from_Status(status, v2_reader_->status()); return; } auto result = BuildV2VarMaps(); var_to_shape_map_.swap(result.first); var_to_data_type_map_.swap(result.second); } else { reader_.reset(new TensorSliceReader(filename)); if (!reader_->status().ok()) { tsl::Set_TF_Status_from_Status(status, reader_->status()); return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 21:29:12 UTC 2023 - 5.5K bytes - Viewed (0) -
src/sync/map_reference_test.go
type mapInterface interface { Load(key any) (value any, ok bool) Store(key, value any) LoadOrStore(key, value any) (actual any, loaded bool) LoadAndDelete(key any) (value any, loaded bool) Delete(any) Swap(key, value any) (previous any, loaded bool) CompareAndSwap(key, old, new any) (swapped bool) CompareAndDelete(key, old any) (deleted bool) Range(func(key, value any) (shouldContinue bool)) Clear() } var (
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 5.6K bytes - Viewed (0) -
test/fixedbugs/issue52612.go
"sync/atomic" "unsafe" ) var one interface{} = 1 type eface struct { typ unsafe.Pointer data unsafe.Pointer } func f(c chan struct{}) { var x atomic.Value go func() { x.Swap(one) // writing using the old marker }() for i := 0; i < 100000; i++ { v := x.Load() // reading using the new marker p := (*eface)(unsafe.Pointer(&v)).typ if uintptr(p) == ^uintptr(0) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 29 20:42:52 UTC 2022 - 881 bytes - Viewed (0) -
pkg/kubelet/kuberuntime/helpers.go
func (b podsByID) Len() int { return len(b) } func (b podsByID) Swap(i, j int) { b[i], b[j] = b[j], b[i] } func (b podsByID) Less(i, j int) bool { return b[i].ID < b[j].ID } type containersByID []*kubecontainer.Container func (b containersByID) Len() int { return len(b) } func (b containersByID) Swap(i, j int) { b[i], b[j] = b[j], b[i] }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 22 02:01:31 UTC 2024 - 12K bytes - Viewed (0) -
src/sync/map_bench_test.go
} }, perG: func(b *testing.B, pb *testing.PB, i int, m mapInterface) { for ; pb.Next(); i++ { if i%(hits+misses) < hits { v := i % (hits + misses) m.Swap(v, v) } else { m.Swap(i, i) m.Delete(i) } } }, }) } func BenchmarkSwapMostlyMisses(b *testing.B) { const hits, misses = 1, 1023 benchMap(b, bench{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 11.5K bytes - Viewed (0) -
src/math/rand/v2/rand.go
// Shuffle pseudo-randomizes the order of elements using the default Source. // n is the number of elements. Shuffle panics if n < 0. // swap swaps the elements with indexes i and j. func Shuffle(n int, swap func(i, j int)) { globalRand.Shuffle(n, swap) } // NormFloat64 returns a normally distributed float64 in the range // [-math.MaxFloat64, +math.MaxFloat64] with
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0) -
.gitignore
.history_rewritten_* # Eclipse artifacts .project .pydevproject #Vagrant tools/vagrant/.vagrant/ # Intellij *.iml .idea/ .run/ # Visual Studio Code .vscode/ # Bazel /bazel-* # vi swap files .*.swp # vi backups *.bak # common backups *~ # python artifacts *.pyc # pilot pilot/pkg/kube/config pilot/pkg/proxy/envoy/envoy # lint lintconfig.gen.json .istiorc .istiorc.mk
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 21 21:20:01 UTC 2024 - 1.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/internal/internal.go
) // SortTags sorts tags in place. func SortTags(tags []language.Tag) { sort.Sort(sorter(tags)) } type sorter []language.Tag func (s sorter) Len() int { return len(s) } func (s sorter) Swap(i, j int) { s[i], s[j] = s[j], s[i] } func (s sorter) Less(i, j int) bool { return s[i].String() < s[j].String() } // UniqueTags sorts and filters duplicate tags in place and returns a slice with
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/cover/profile.go
NumStmt, Count int } type byFileName []*Profile func (p byFileName) Len() int { return len(p) } func (p byFileName) Less(i, j int) bool { return p[i].FileName < p[j].FileName } func (p byFileName) Swap(i, j int) { p[i], p[j] = p[j], p[i] } // ParseProfiles parses profile data in the specified file and returns a // Profile for each source file described therein. func ParseProfiles(fileName string) ([]*Profile, error) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 11 17:02:03 UTC 2021 - 7.5K bytes - Viewed (0) -
src/sort/example_multi_test.go
return &multiSorter{ less: less, } } // Len is part of sort.Interface. func (ms *multiSorter) Len() int { return len(ms.changes) } // Swap is part of sort.Interface. func (ms *multiSorter) Swap(i, j int) { ms.changes[i], ms.changes[j] = ms.changes[j], ms.changes[i] } // Less is part of sort.Interface. It is implemented by looping along the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 13 20:16:24 UTC 2022 - 4K bytes - Viewed (0)