Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 558 for Positive (0.25 sec)

  1. src/cmd/go/internal/par/queue.go

    	backlog []func()
    	idle    chan struct{} // if non-nil, closed when active becomes 0
    }
    
    // NewQueue returns a Queue that executes up to maxActive items in parallel.
    //
    // maxActive must be positive.
    func NewQueue(maxActive int) *Queue {
    	if maxActive < 1 {
    		panic(fmt.Sprintf("par.NewQueue called with nonpositive limit (%d)", maxActive))
    	}
    
    	q := &Queue{
    		maxActive: maxActive,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 24 21:08:46 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  2. platforms/jvm/toolchains-jvm-shared/src/main/java/org/gradle/jvm/toolchain/internal/DefaultJavaLanguageVersion.java

            }
        }
    
        public static JavaLanguageVersion of(int version) {
            if (version <= 0) {
                throw new IllegalArgumentException("JavaLanguageVersion must be a positive integer, not " + version);
            }
            if (version >= LOWER_CACHED_VERSION && version <= HIGHER_CACHED_VERSION) {
                return KNOWN_VERSIONS[version - LOWER_CACHED_VERSION];
            } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    )
    
    // parseQuantityString is a fast scanner for quantity values.
    func parseQuantityString(str string) (positive bool, value, num, denom, suffix string, err error) {
    	positive = true
    	pos := 0
    	end := len(str)
    
    	// handle leading sign
    	if pos < end {
    		switch str[0] {
    		case '-':
    			positive = false
    			pos++
    		case '+':
    			pos++
    		}
    	}
    
    	// strip leading zeros
    Zeroes:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  4. pkg/apis/flowcontrol/validation/validation.go

    		allErrs = append(allErrs, field.Invalid(fldPath.Child("queueLengthLimit"), queuing.QueueLengthLimit, "must be positive"))
    	}
    
    	// validate input arguments for shuffle-sharding
    	if queuing.Queues <= 0 {
    		allErrs = append(allErrs, field.Invalid(fldPath.Child("queues"), queuing.Queues, "must be positive"))
    	} else if queuing.Queues > priorityLevelConfigurationQueuingMaxQueues {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  5. tensorflow/cc/gradients/grad_helper.cc

      // should be replaced by 1.
      // We use DynamicStitch to do this.
    
      // input_rank = 4
      auto input_rank = Size(scope, input_shape);
    
      // Normalize any negative indices in the reduction_axes to positive
      // values.
      auto axes = Mod(scope, Add(scope, reduction_axes, input_rank), input_rank);
    
      // This [0..input_rank) range of integers is used in DynamicStitch to
      // first copy input_shape to the result.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/math/IntMath.java

       */
      public static int gcd(int a, int b) {
        /*
         * The reason we require both arguments to be >= 0 is because otherwise, what do you return on
         * gcd(0, Integer.MIN_VALUE)? BigInteger.gcd would return positive 2^31, but positive 2^31 isn't
         * an int.
         */
        checkNonNegative("a", a);
        checkNonNegative("b", b);
        if (a == 0) {
          // 0 % b == 0, so b divides a, but the converse doesn't hold.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/server/options/server_run_options.go

    	// ShutdownWatchTerminationGracePeriod, if set to a positive value,
    	// is the maximum duration the apiserver will wait for all active
    	// watch request(s) to drain.
    	// Once this grace period elapses, the apiserver will no longer
    	// wait for any active watch request(s) in flight to drain, it will
    	// proceed to the next step in the graceful server shutdown process.
    	// If set to a positive value, the apiserver will keep track of the
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 21:53:51 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/framepointer/framepointer.go

    	Doc:  Doc,
    	URL:  "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/framepointer",
    	Run:  run,
    }
    
    var (
    	re             = regexp.MustCompile
    	asmWriteBP     = re(`,\s*BP$`) // TODO: can have false positive, e.g. for TESTQ BP,BP. Seems unlikely.
    	asmMentionBP   = re(`\bBP\b`)
    	asmControlFlow = re(`^(J|RET)`)
    )
    
    func run(pass *analysis.Pass) (interface{}, error) {
    	if build.Default.GOARCH != "amd64" { // TODO: arm64 also?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/IntMath.java

       */
      public static int gcd(int a, int b) {
        /*
         * The reason we require both arguments to be >= 0 is because otherwise, what do you return on
         * gcd(0, Integer.MIN_VALUE)? BigInteger.gcd would return positive 2^31, but positive 2^31 isn't
         * an int.
         */
        checkNonNegative("a", a);
        checkNonNegative("b", b);
        if (a == 0) {
          // 0 % b == 0, so b divides a, but the converse doesn't hold.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/TreeRangeSet.java

           * complementLowerBoundWindow. Complement range lower bounds are either positive range upper
           * bounds, or Cut.belowAll().
           *
           * positiveItr starts at the first positive range with lower bound greater than
           * firstComplementRangeLowerBound. (Positive range lower bounds correspond to complement range
           * upper bounds.)
           */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 32.5K bytes
    - Viewed (0)
Back to top