- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 190 for asSlice (0.14 sec)
-
pkg/apis/resource/validation/validation.go
return allErrs } // validateSliceIsASet ensures that a slice contains no duplicates and does not exceed a certain maximum size. func validateSliceIsASet[T comparable](slice []T, maxSize int, validateItem func(item T, fldPath *field.Path) field.ErrorList, fldPath *field.Path) field.ErrorList { var allErrs field.ErrorList allItems := sets.New[T]() for i, item := range slice { idxPath := fldPath.Index(i) if allItems.Has(item) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 07 09:18:10 UTC 2024 - 28.3K bytes - Viewed (0) -
internal/logger/targets.go
// This is always set represent /dev/console target consoleTgt Target ) // SystemTargets returns active targets. // Returned slice may not be modified in any way. func SystemTargets() []Target { return systemTargets.get() } // AuditTargets returns active audit targets. // Returned slice may not be modified in any way. func AuditTargets() []Target { return auditTargets.get() }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 03 15:44:50 UTC 2024 - 6K bytes - Viewed (0) -
src/syscall/getdirentries_test.go
if n == 0 { break } data := buf[:n] for len(data) > 0 { // If multiple Dirents are written into buf, sometimes when we reach the final one, // we have cap(buf) < Sizeof(Dirent). So use an appropriate slice to copy from data. var dirent syscall.Dirent copy((*[unsafe.Sizeof(dirent)]byte)(unsafe.Pointer(&dirent))[:], data) data = data[dirent.Reclen:] name := make([]byte, dirent.Namlen)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy
configurationCache.assertStateStored() problems.assertResultHasProblems(result) { withNoInputs() } when: printString "alice" then: output.count("The string is alice") == 1 configurationCache.assertStateLoaded() when: printString "bob" then: output.count("The string is bob") == 1
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/uniform-quantized-stablehlo-to-tfl.mlir
// CHECK-NOT: tfl.padv2 // CHECK: stablehlo.pad // ----- // Tests that a quantized `stablehlo.slice` is converted to // `tfl.slice` when stride is 1. func.func @slice( %arg0: tensor<3x4x!quant.uniform<i8:f32, 2.000000e+00:-1>> ) -> tensor<2x2x!quant.uniform<i8:f32, 2.000000e+00:-1>> { %0 = "stablehlo.slice"(%arg0) { start_indices = array<i64: 1, 2>, limit_indices = array<i64: 3, 4>,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 14 17:10:32 UTC 2024 - 106.2K bytes - Viewed (0) -
pkg/controller/endpointslice/endpointslice_controller.go
defer c.eventBroadcaster.Shutdown() defer c.serviceQueue.ShutDown() defer c.topologyQueue.ShutDown() logger := klog.FromContext(ctx) logger.Info("Starting endpoint slice controller") defer logger.Info("Shutting down endpoint slice controller") if !cache.WaitForNamedCacheSync("endpoint_slice", ctx.Done(), c.podsSynced, c.servicesSynced, c.endpointSlicesSynced, c.nodesSynced) { return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 08:33:32 UTC 2024 - 23.6K bytes - Viewed (0) -
src/syscall/dirent.go
} } // ParseDirent parses up to max directory entries in buf, // appending the names to names. It returns the number of // bytes consumed from buf, the number of entries added // to names, and the new names slice. func ParseDirent(buf []byte, max int, names []string) (consumed int, count int, newnames []string) { origlen := len(buf) count = 0 for max != 0 && len(buf) > 0 { reclen, ok := direntReclen(buf)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 20:13:24 UTC 2024 - 2.4K bytes - Viewed (0) -
analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/symbols/descriptorBased/KtFe10DescValueParameterSymbol.kt
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 3.9K bytes - Viewed (0) -
pilot/test/xdstest/endpoints.go
if len(got) != len(want) { return fmt.Errorf("unexpected number of filtered endpoints for %s: got %v, want %v", cluster, len(got), len(want)) } sort.Slice(got, func(i, j int) bool { addrI := util.GetEndpointHost(got[i].LbEndpoints[0]) addrJ := util.GetEndpointHost(got[j].LbEndpoints[0]) return addrI < addrJ }) for i, ep := range got {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed May 29 01:17:58 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc
} } // This function rewrites the original op into a series of slice and concat op // to produce the same result. It first slices the first `$index` rows. Then // expands the dimension of the `$item`, followed by another slice of the // remaining rows starting from `$index` + 1. Lastly it concatenates the // three parts together.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 70.7K bytes - Viewed (0)