Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 109 for clip (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. hack/verify-cli-conventions.sh

    # Usage: `hack/verify-cli-conventions.sh`.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    kube::golang::setup_env
    
    GOPROXY=off go install ./cmd/clicheck
    
    if ! output=$(clicheck 2>&1)
    then
    	echo "$output"
    	echo
    	echo "FAILURE: CLI is not following one or more required conventions."
    	exit 1
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:32 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  6. docs/en/docs/fastapi-cli.md

    # FastAPI CLI
    
    **FastAPI CLI** is a command line program that you can use to serve your FastAPI app, manage your FastAPI project, and more.
    
    When you install FastAPI (e.g. with `pip install fastapi`), it includes a package called `fastapi-cli`, this package provides the `fastapi` command in the terminal.
    
    To run your FastAPI app for development, you can use the `fastapi dev` command:
    
    <div class="termy">
    
    ```console
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Jun 12 23:39:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  7. docs/pt/docs/fastapi-cli.md

    # FastAPI CLI
    
    **FastAPI CLI** é uma interface por linha de comando do `fastapi` que você pode usar para rodar sua app FastAPI, gerenciar seu projeto FastAPI e mais.
    
    Quando você instala o FastAPI (ex.: com `pip install fastapi`), isso inclui um pacote chamado `fastapi-cli`. Esse pacote disponibiliza o comando `fastapi` no terminal.
    
    Para rodar seu app FastAPI em desenvolvimento, você pode usar o comando `fastapi dev`:
    
    <div class="termy">
    
    ```console
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jun 11 23:49:51 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  8. docs/tr/docs/history-design-future.md

    </blockquote>
    
    ## Araştırma
    
    Önceki alternatifleri kullanarak hepsinden bir şeyler öğrenip, fikirler alıp, bunları kendim ve çalıştığım geliştirici ekipler için en iyi şekilde birleştirebilme şansım oldu.
    
    Mesela, ideal olarak standart Python tip belirteçlerine dayanması gerektiği açıktı.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. maven-embedder/src/main/resources/META-INF/maven/slf4j-configuration.properties

    # key = Slf4j effective logger factory implementation
    # value = corresponding o.a.m.cli.logging.Slf4jConfiguration class
    org.slf4j.impl.SimpleLoggerFactory org.apache.maven.cli.logging.impl.Slf4jSimpleConfiguration
    org.apache.maven.slf4j.MavenLoggerFactory org.apache.maven.cli.logging.impl.Slf4jSimpleConfiguration
    org.apache.logging.slf4j.Log4jLoggerFactory org.apache.maven.cli.logging.impl.Log4j2Configuration
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jan 09 06:36:58 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/cli/BuildEnvironmentConfigurationConverter.java

    import org.gradle.launcher.cli.converter.BuildLayoutConverter;
    import org.gradle.launcher.cli.converter.BuildOptionBackedConverter;
    import org.gradle.launcher.cli.converter.InitialPropertiesConverter;
    import org.gradle.launcher.cli.converter.LayoutToPropertiesConverter;
    import org.gradle.launcher.cli.converter.StartParameterConverter;
    import org.gradle.launcher.configuration.AllProperties;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 13:41:21 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top