- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 505 for clip (0.03 sec)
-
src/image/draw/clip_test.go
src := src0.SubImage(c.sr).(*image.RGBA) r, sp, mp := c.r, c.sp, c.mp if c.nilMask { clip(dst, &r, src, &sp, nil, nil) } else { clip(dst, &r, src, &sp, mask0.SubImage(c.mr), &mp) } // Check that the actual results equal the expected results. if !c.r0.Eq(r) { t.Errorf("%s: clip rectangle want %v got %v", c.desc, c.r0, r) continue } if !c.sp0.Eq(sp) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 18:07:05 UTC 2023 - 4.4K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue60542.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p func Clip[S ~[]E, E any](s S) S { return s } var versions func()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 21:28:05 UTC 2024 - 331 bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.td
def RemoveRedundantCastOps : Pat< (TF_CastOp:$root_cast (TF_CastOp:$i8_cast (TF_ClipByValueOp:$clip $input, $min_value, $max_value), ConstBoolAttrFalse:$truncate2), ConstBoolAttrFalse:$truncate1), (TF_CastOp $clip, ConstBoolAttrFalse), [(TensorOf<[I8]> $i8_cast), (TensorOf<[I32]> $clip), (IsIntSplatValueEqual<"int32_t", "-128"> $min_value), (IsIntSplatValueEqual<"int32_t", "127"> $max_value)]>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/go/internal/vcweb/git.go
} func (h *gitHandler) Handler(dir string, env []string, logger *log.Logger) (http.Handler, error) { if !h.Available() { return nil, ServerNotInstalledError{name: "git"} } baseEnv := append(slices.Clip(env), "GIT_PROJECT_ROOT="+dir, "GIT_HTTP_EXPORT_ALL=1", ) handler := http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) { // The Git client sends the requested Git protocol version as a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 14 19:46:23 UTC 2023 - 1.8K bytes - Viewed (0) -
src/slices/example_test.go
// Output: // 4 // [0 42 -10 8] // 4 // 8 } func ExampleClip() { a := [...]int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9} s := a[:4:10] clip := slices.Clip(s) fmt.Println(cap(s)) fmt.Println(clip) fmt.Println(len(clip)) fmt.Println(cap(clip)) // Output: // 10 // [0 1 2 3] // 4 // 4 } func ExampleConcat() { s1 := []int{0, 1, 2, 3} s2 := []int{4, 5, 6}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 17:28:50 UTC 2024 - 8.1K bytes - Viewed (0) -
src/log/slog/record_test.go
// Adding to both should insert a special Attr in the second. r1AttrsBefore := attrsSlice(r1) r1.AddAttrs(Int("p", 0)) r2.AddAttrs(Int("p", 1)) check(r1, append(slices.Clip(r1AttrsBefore), Int("p", 0))) r1Attrs := attrsSlice(r1) check(r2, append(slices.Clip(r1AttrsBefore), String("!BUG", "AddAttrs unsafely called on copy of Record made without using Record.Clone"), Int("p", 1))) // Adding to a clone is fine. r2 = r1.Clone()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 15:10:55 UTC 2023 - 4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils.cc
return failure(); } const double fraction = std::frexp(double_multiplier, &shift); quantized_fraction = static_cast<int32_t>(std::round(fraction * (1L << 15))); // Clip extreme values. These are more than enough to overflow int8, the // storage type for quantized values, and the final values will be clamped // no matter what. if (quantized_fraction == (1L << 15)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 08:32:43 UTC 2024 - 2.1K bytes - Viewed (0) -
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) -
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/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)