Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 404 for Decrement (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc

        }
    
        // Set the increment to 256 * delta.
        Type u64 = rewriter.getIntegerType(64, /*isSigned=*/false);
        RankedTensorType u64_scalar = RankedTensorType::get({}, u64);
        Value step_size = rewriter.create<ConstOp>(loc, GetScalarOfType(u64, 256));
        Value increment =
            rewriter.create<MulOp>(loc, u64_scalar, step_size, rng_op.getDelta());
    
        // Increment the counter.
        SmallVector<Value, 4> pack_args;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  2. src/sync/once_test.go

    // license that can be found in the LICENSE file.
    
    package sync_test
    
    import (
    	. "sync"
    	"testing"
    )
    
    type one int
    
    func (o *one) Increment() {
    	*o++
    }
    
    func run(t *testing.T, once *Once, o *one, c chan bool) {
    	once.Do(func() { o.Increment() })
    	if v := *o; v != 1 {
    		t.Errorf("once failed inside run: %d is not 1", v)
    	}
    	c <- true
    }
    
    func TestOnce(t *testing.T) {
    	o := new(one)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 16 21:22:33 UTC 2014
    - 1.1K bytes
    - Viewed (0)
  3. pkg/security/retry.go

    // Instead, we can wrap the backoff hook to log/increment metrics before returning the backoff result.
    func wrapBackoffWithMetrics(bf retry.BackoffFunc) retry.BackoffFunc {
    	return func(attempt uint) time.Duration {
    		wait := bf(attempt)
    		caLog.Warnf("ca request failed, starting attempt %d in %v", attempt, wait)
    		monitoring.NumOutgoingRetries.With(monitoring.RequestType.Value(monitoring.CSR)).Increment()
    		return wait
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  4. pkg/wasm/cache.go

    		wasmRemoteFetchCount.With(resultTag.Value(checksumMismatch)).Increment()
    		return nil, fmt.Errorf("module downloaded from %v has checksum %v, which does not match: %v", key.downloadURL, dChecksum, key.checksum)
    	}
    
    	if binaryFetcher != nil {
    		b, err = binaryFetcher()
    		if err != nil {
    			wasmRemoteFetchCount.With(resultTag.Value(downloadFailure)).Increment()
    			return nil, fmt.Errorf("could not fetch Wasm binary: %v", err)
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. pilot/pkg/xds/sds.go

    		pilotSDSCertificateErrors.Increment()
    		return nil, model.DefaultXdsLogDetails, nil
    	}
    	configClusterSecrets, err := s.secrets.ForCluster(s.configCluster)
    	if err != nil {
    		log.Warnf("config cluster %s not found, cannot retrieve certificates: %v", s.configCluster, err)
    		pilotSDSCertificateErrors.Increment()
    		return nil, model.DefaultXdsLogDetails, nil
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 15 23:04:36 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/discovery/aggregated/metrics_test.go

    	manager.SetGroups(apis.Items)
    
    	interests := []string{"aggregator_discovery_aggregation_count_total"}
    
    	_, _, _ = fetchPath(manager, "application/json", discoveryPath, "")
    	// A single fetch should aggregate and increment regeneration counter.
    	if err := testutil.GatherAndCompare(legacyregistry.DefaultGatherer, formatExpectedMetrics(1), interests...); err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 09 17:24:02 UTC 2023
    - 3K bytes
    - Viewed (0)
  7. test/prove_invert_loop_with_unused_iterators.go

    // errorcheck -0 -d=ssa/prove/debug=1
    
    //go:build amd64
    
    package main
    
    func invert(b func(), n int) {
    	for i := 0; i < n; i++ { // ERROR "(Inverted loop iteration|Induction variable: limits \[0,\?\), increment 1)"
    		b()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 225 bytes
    - Viewed (0)
  8. src/cmd/go/internal/telemetrystats/telemetrystats_bootstrap.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cmd_go_bootstrap
    
    package telemetrystats
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:09:11 UTC 2024
    - 233 bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/loopbce.go

    			// See https://go.dev/issue/63955
    			continue
    		}
    
    		// Expect the increment to be a nonzero constant.
    		if !inc.isGenericIntConst() {
    			continue
    		}
    		step := inc.AuxInt
    		if step == 0 {
    			continue
    		}
    
    		// Increment sign must match comparison direction.
    		// When incrementing, the termination comparison must be ind </<= limit.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 17:37:47 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  10. test/fixedbugs/bug060.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "os"
    
    func main() {
    	m := make(map[int]int);
    	m[0] = 0;
    	m[0]++;
    	if m[0] != 1 {
    		print("map does not increment\n");
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 325 bytes
    - Viewed (0)
Back to top