- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 593 for clip (0.04 sec)
-
src/log/slog/record.go
} } // Clone returns a copy of the record with no shared state. // The original record and the clone can both be modified // without interfering with each other. func (r Record) Clone() Record { r.back = slices.Clip(r.back) // prevent append from mutating shared array return r } // NumAttrs returns the number of attributes in the [Record]. func (r Record) NumAttrs() int { return r.nFront + len(r.back) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 08 16:30:56 UTC 2023 - 6K bytes - Viewed (0) -
android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java
// where {hi,lo} are characters forming a surrogate pair such that: // codePointOf(hi, lo) > safeMax // which would result in the surrogate pair being (wrongly) considered safe. // If we clip the safe range used during the per-character tests so it is // below the values of characters in surrogate pairs, this cannot occur. // This approach does mean that we break out of the fast path code in cases
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 8.5K bytes - Viewed (0) -
src/cmd/go/internal/mvs/graph.go
// The caller must ensure that the root slice is not modified while the Graph // may be in use. func NewGraph(cmp func(p, v1, v2 string) int, roots []module.Version) *Graph { g := &Graph{ cmp: cmp, roots: slices.Clip(roots), required: make(map[module.Version][]module.Version), isRoot: make(map[module.Version]bool), selected: make(map[string]string), } for _, m := range roots { g.isRoot[m] = true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 02:52:19 UTC 2023 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantized_function_library_tf_drq.mlir
%i8_max = "tf.Const"() {value = dense<127.0> : tensor<f32>} : () -> tensor<f32> %clip = "tf.ClipByValue"(%round, %i8_min, %i8_max) : (tensor<*xf32>, tensor<f32>, tensor<f32>) -> tensor<*xf32> %i8 = "tf.Cast"(%clip) : (tensor<*xf32>) -> tensor<*xi8> func.return %i8 : tensor<*xi8> } func.func private @internal_dequantize_i32(%input : tensor<*xi32>,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 15:43:38 UTC 2023 - 12.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go
"context.WithTimeout": true, "context.WithValue": true, "errors.New": true, "fmt.Errorf": true, "fmt.Sprint": true, "fmt.Sprintf": true, "slices.Clip": true, "slices.Compact": true, "slices.CompactFunc": true, "slices.Delete": true, "slices.DeleteFunc": true, "slices.Grow": true, "slices.Insert": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 4.5K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/hg.go
defer cancel() cmd := exec.CommandContext(ctx, h.hgPath, "serve", "--port", "0", "--address", "localhost", "--accesslog", os.DevNull, "--name", "vcweb", "--print-url") cmd.Dir = dir cmd.Env = append(slices.Clip(env), "PWD="+dir) cmd.Cancel = func() error { err := cmd.Process.Signal(os.Interrupt) if err != nil && !errors.Is(err, os.ErrProcessDone) { err = cmd.Process.Kill() } return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 02:52:19 UTC 2023 - 3.3K bytes - Viewed (0) -
src/cmd/go/go_unix_test.go
// with a signal they might fail to clean up some temp files, and we don't // want that to cause an "unexpected files" failure at the end of the run. cmd.Env = append(slices.Clip(tg.env), tempEnvName()+"="+t.TempDir()) cmd.SysProcAttr = &syscall.SysProcAttr{ Setpgid: true, } cmd.Cancel = func() error { pgid := cmd.Process.Pid return syscall.Kill(-pgid, syscall.SIGINT) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 19 16:17:55 UTC 2023 - 3.5K bytes - Viewed (0) -
src/slices/slices.go
if n < 0 { panic("cannot be negative") } if n -= cap(s) - len(s); n > 0 { s = append(s[:cap(s)], make([]E, n)...)[:len(s)] } return s } // Clip removes unused capacity from the slice, returning s[:len(s):len(s)]. func Clip[S ~[]E, E any](s S) S { return s[:len(s):len(s)] } // TODO: There are other rotate algorithms.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
src/log/slog/handler.go
// We can't use assignment because we can't copy the mutex. return &commonHandler{ json: h.json, opts: h.opts, preformattedAttrs: slices.Clip(h.preformattedAttrs), groupPrefix: h.groupPrefix, groups: slices.Clip(h.groups), nOpenGroups: h.nOpenGroups, w: h.w, mu: h.mu, // mutex shared among all clones of this handler } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 18:18:13 UTC 2023 - 17.5K bytes - Viewed (0) -
src/image/draw/draw.go
clip(dst, &r, src, &sp, nil, nil) if r.Empty() { return } drawPaletted(dst, r, src, sp, true) } // clip clips r against each image's bounds (after translating into the // destination image's coordinate space) and shifts the points sp and mp by // the same amount as the change in r.Min.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 33.9K bytes - Viewed (0)