- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 105 for Flip (0.05 sec)
-
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/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/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) -
platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/PathTraversalCheckerIntegrationTest.groovy
import java.util.zip.ZipEntry import java.util.zip.ZipFile import java.util.zip.ZipOutputStream /** * Ensures Gradle core tasks and types are not subject to the * <a href="https://snyk.io/research/zip-slip-vulnerability">Zip Slip Vulnerability</a>. */ class PathTraversalCheckerIntegrationTest extends AbstractIntegrationSpec { private TestFile getEvilZip() { file("evil.zip") } def setup() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:12:34 UTC 2023 - 4K 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) -
docs/tr/docs/deployment/index.md
Bu, kodu sürekli olarak değiştirdiğiniz, hata alıp hata giderdiğiniz, geliştirme sunucusunu durdurup yeniden başlattığınız vb. **geliştirme** aşamalarının tam tersidir. ## Deployment Stratejileri
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu May 23 22:46:42 UTC 2024 - 1.4K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/PathTraversalChecker.java
* * This code is used for path traversal, ZipSlip and TarSlip detection. * * <b>IMPLEMENTATION NOTE</b> * We do it this way instead of the way recommended in <a href="https://snyk.io/research/zip-slip-vulnerability"></a> * for performance reasons, calling {@link File#getCanonicalPath()} is too expensive. * * @throws IllegalArgumentException if the entry contains vulnerable sequences */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:55:52 UTC 2023 - 2.3K 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)