- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 375 for Slice3 (0.13 sec)
-
src/cmp/cmp_test.go
Product string Customer string Price float64 } orders := []Order{ {"foo", "alice", 1.00}, {"bar", "bob", 3.00}, {"baz", "carol", 4.00}, {"foo", "alice", 2.00}, {"bar", "carol", 1.00}, {"foo", "bob", 4.00}, } // Sort by customer first, product second, and last by higher price slices.SortFunc(orders, func(a, b Order) int { return cmp.Or( strings.Compare(a.Customer, b.Customer),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 23:39:07 UTC 2024 - 3.9K bytes - Viewed (0) -
plugin/pkg/auth/authorizer/node/node_authorizer_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 40.5K bytes - Viewed (0) -
src/site/xdoc/maven-deps.odg
classworlds repository-metadata settings resolver api spi impl util resolver-provider builder-support jansi slf4j-api shared-utils slf4j-provider bom toolchain-builder toolchain-model meta di xml model plugin toolchain core spi xml-impl xml settings jline3 compat slf4j-wrapper jline woodstox api-impl di metadata...
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Wed Apr 24 16:01:00 UTC 2024 - 37K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1_test.go
attr: aliceAttr, expressions1: []apiserver.WebhookMatchCondition{ { Expression: "request.user == 'alice2'", }, { Expression: "request.uid == '1'", }, }, expressions2: []apiserver.WebhookMatchCondition{ { Expression: "request.user == 'alice1'", }, }, metrics: []string{ "apiserver_authorization_match_condition_exclusions_total", },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc
std::vector<Value> sliced; if (batch_size == 1) { // Batch size is 1, no splitting is required // Squeeze the batch dimension, i.e. reshape // [1, num_rows, num_cols] -> [num_rows, num_cols] auto reshape_op = createReshapeOp(value, {num_rows, num_cols}, element_type, loc, rewriter); sliced.emplace_back(reshape_op.getOutput()); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.6K bytes - Viewed (0) -
test/rangegen.go
outFunc.print() println() println("slice:") outSlice.print() panic("mismatch") } } if verbose { println("did", "%[3]s", "%[4]s", len(all)) } } ` var mainCode = ` func main() { if verbose { println("main") } %s } func yield2(yield func(int)bool) { _ = yield(1) && yield(2) } var slice2 = []int{1,2} type output struct { ret int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 23:35:19 UTC 2023 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir
// CHECK: %[[SLICE0:.*]] = "mhlo.slice"(%[[ARG2]]) // CHECK-DAG-SAME: start_indices = dense<0> : tensor<1xi64> // CHECK-DAG-SAME: limit_indices = dense<1> : tensor<1xi64> // CHECK-DAG-SAME: strides = dense<1> : tensor<1xi64> // CHECK-SAME: (tensor<2xi32>) -> tensor<1xi32> // CHECK: %[[DIM0:.*]] = mhlo.reshape %[[SLICE0]] : (tensor<1xi32>) -> tensor<i32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 38.6K bytes - Viewed (0) -
doc/next/6-stdlib/3-iter.md
an existing slice. - [Sorted](/pkg/slices#Sorted) collects values from an iterator into a new slice, and then sorts the slice. - [SortedFunc](/pkg/slices#SortedFunc) is like `Sorted` but with a comparison function. - [SortedStableFunc](/pkg/slices#SortedStableFunc) is like `SortFunc` but uses a stable sort algorithm. - [Chunk](/pkg/slices#Chunk) returns an iterator over consecutive
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:13 UTC 2024 - 1.4K bytes - Viewed (0) -
src/sort/sort_slices_benchmark_test.go
// license that can be found in the LICENSE file. package sort_test import ( "math/rand/v2" "slices" . "sort" "strconv" stringspkg "strings" "testing" ) // Benchmarks comparing sorting from the slices package with functions from // the sort package (avoiding functions that are just forwarding to the slices // package). func makeRandomInts(n int) []int { r := rand.New(rand.NewPCG(42, 0))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 08 22:59:40 UTC 2024 - 4K bytes - Viewed (0) -
test/escape2.go
_ = f } func issue11387(x int) func() int { f := func() int { return x } // ERROR "func literal escapes to heap" slice1 := []func() int{f} // ERROR "\[\].* does not escape" slice2 := make([]func() int, 1) // ERROR "make\(.*\) does not escape" copy(slice2, slice1) return slice2[0] } func issue12397(x, y int) { // ERROR "moved to heap: y$" // x does not escape below, because all relevant code is dead.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 17:22:18 UTC 2023 - 35.1K bytes - Viewed (0)