Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for IncrementBy (0.28 sec)

  1. tensorflow/c/eager/c_api_experimental_reader.h

    // auto* streamz = tensorflow::monitoring::Counter<1>::New("name",
    // "description", "label");
    // and then incremented that counter for various values of label:
    // streamz->GetCell("label-value")->IncrementBy(1);
    //
    // The test code can then read and test the value of that counter:
    //
    // auto* reader = TFE_MonitoringNewCounterReader("name");
    // test();
    // int64_t value = TFE_MonitoringReadCounter1(reader, "label-value");
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 20 03:14:47 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/cache/AbstractCacheTest.java

          totalLoadTime += i;
        }
        for (int i = 0; i < 41; i++) {
          counter2.recordMisses(1);
        }
        for (int i = 0; i < 43; i++) {
          counter2.recordEviction();
        }
    
        counter1.incrementBy(counter2);
        assertEquals(new CacheStats(38, 60, 44, 54, totalLoadTime, 66), counter1.snapshot());
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/AbstractCacheTest.java

          totalLoadTime += i;
        }
        for (int i = 0; i < 41; i++) {
          counter2.recordMisses(1);
        }
        for (int i = 0; i < 43; i++) {
          counter2.recordEviction();
        }
    
        counter1.incrementBy(counter2);
        assertEquals(new CacheStats(38, 60, 44, 54, totalLoadTime, 66), counter1.snapshot());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/cache/AbstractCache.java

        private static long negativeToMaxValue(long value) {
          return (value >= 0) ? value : Long.MAX_VALUE;
        }
    
        /** Increments all counters by the values in {@code other}. */
        public void incrementBy(StatsCounter other) {
          CacheStats otherStats = other.snapshot();
          hitCount.add(otherStats.hitCount());
          missCount.add(otherStats.missCount());
          loadSuccessCount.add(otherStats.loadSuccessCount());
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/cache/AbstractCache.java

        private static long negativeToMaxValue(long value) {
          return (value >= 0) ? value : Long.MAX_VALUE;
        }
    
        /** Increments all counters by the values in {@code other}. */
        public void incrementBy(StatsCounter other) {
          CacheStats otherStats = other.snapshot();
          hitCount.add(otherStats.hitCount());
          missCount.add(otherStats.missCount());
          loadSuccessCount.add(otherStats.loadSuccessCount());
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 9.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_experimental.cc

      return context->GetContextId();
    }
    
    void TFE_MonitoringCounterCellIncrementBy(TFE_MonitoringCounterCell* cell,
                                              int64_t value) {
      cell->cell.IncrementBy(value);
    }
    
    int64_t TFE_MonitoringCounterCellValue(TFE_MonitoringCounterCell* cell) {
      return cell->cell.value();
    }
    
    TFE_MonitoringCounter0* TFE_MonitoringNewCounter0(const char* name,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  7. android/guava/src/com/google/common/cache/LocalCache.java

        }
    
        @Override
        public CacheStats stats() {
          SimpleStatsCounter aggregator = new SimpleStatsCounter();
          aggregator.incrementBy(localCache.globalStatsCounter);
          for (Segment<K, V> segment : localCache.segments) {
            aggregator.incrementBy(segment.statsCounter);
          }
          return aggregator.snapshot();
        }
    
        @Override
        public void cleanUp() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/cache/LocalCache.java

        }
    
        @Override
        public CacheStats stats() {
          SimpleStatsCounter aggregator = new SimpleStatsCounter();
          aggregator.incrementBy(localCache.globalStatsCounter);
          for (Segment<K, V> segment : localCache.segments) {
            aggregator.incrementBy(segment.statsCounter);
          }
          return aggregator.snapshot();
        }
    
        @Override
        public void cleanUp() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top