Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,280 for hash_code (0.16 sec)

  1. tensorflow/compiler/jit/xla_launch_util_gpu_test.cc

        handle.set_device(device_->name());
        handle.set_container(rm->default_container());
        handle.set_name(name);
        TypeIndex type_index = TypeIndex::Make<Var>();
        handle.set_hash_code(type_index.hash_code());
        handle.set_maybe_type_name(type_index.name());
    
        Tensor* input = new Tensor(host_allocator_, DT_RESOURCE, TensorShape({}));
        input->scalar<ResourceHandle>()() = handle;
        tensors_.push_back(input);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 10K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_launch_util_test.cc

        handle.set_device(device_->name());
        handle.set_container(rm->default_container());
        handle.set_name(name);
        TypeIndex type_index = TypeIndex::Make<Var>();
        handle.set_hash_code(type_index.hash_code());
        handle.set_maybe_type_name(type_index.name());
    
        Tensor* input = new Tensor(host_allocator_, DT_RESOURCE, TensorShape({}));
        input->scalar<ResourceHandle>()() = handle;
        tensors_.push_back(input);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  3. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java

     * This implementation also requires GC to track two separate objects (the {@code HashCode} object and its {@code byte[]}).
     * <p>
     * Because Gradle uses a lot of MD5 hashes, for 128-bit hashes we have a more efficient implementation.
     * {@link HashCode128} uses two longs to store the bits of the hash, and does not need to cache the {@link #hashCode()} either.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 14 19:25:07 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/HashCodeTest.java

        bytesB[4] = (byte) 0xef;
    
        HashCode hashCodeA = HashCode.fromBytes(bytesA);
        HashCode hashCodeB = HashCode.fromBytes(bytesB);
    
        // They aren't equal...
        assertFalse(hashCodeA.equals(hashCodeB));
    
        // But they still have the same Object#hashCode() value.
        // Technically not a violation of the equals/hashCode contract, but...?
        assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/DefaultHashingClassLoaderFactory.java

            HashCode hashCode = implementationHash != null
                ? implementationHash
                : calculateClassLoaderHash(classPath);
            ClassLoader classLoader = super.doCreateClassLoader(name, parent, classPath);
            hashCodes.put(classLoader, hashCode);
            return classLoader;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/Hashing.java

        for (HashCode hashCode : hashCodes) {
          byte[] nextBytes = hashCode.asBytes();
          checkArgument(
              nextBytes.length == resultBytes.length, "All hashcodes must have the same bit length.");
          for (int i = 0; i < nextBytes.length; i++) {
            resultBytes[i] = (byte) (resultBytes[i] * 37 ^ nextBytes[i]);
          }
        }
        return HashCode.fromBytesNoCopy(resultBytes);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 09 00:37:15 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

        for (HashCode hashCode : hashCodes) {
          byte[] nextBytes = hashCode.asBytes();
          checkArgument(
              nextBytes.length == resultBytes.length, "All hashcodes must have the same bit length.");
          for (int i = 0; i < nextBytes.length; i++) {
            resultBytes[i] = (byte) (resultBytes[i] * 37 ^ nextBytes[i]);
          }
        }
        return HashCode.fromBytesNoCopy(resultBytes);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 09 00:37:15 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  8. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/WeakIdentityHashMapTest.groovy

            expect:
            weakKey1 == weakKey2
        }
    
        def "hashCode of weakKey is system identity hashCode"() {
            Thing thing = new Thing("thing")
            WeakIdentityHashMap.WeakKey<Thing> weakKey = new WeakIdentityHashMap.WeakKey<>(thing)
    
            expect:
            weakKey.hashCode() == System.identityHashCode(thing)
        }
    
        class Thing {
            String name
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/caching/impl/DefaultBuildCacheKey.java

    import org.gradle.internal.hash.HashCode;
    
    public class DefaultBuildCacheKey implements BuildCacheKeyInternal {
        private final HashCode hashCode;
    
        public DefaultBuildCacheKey(HashCode hashCode) {
            this.hashCode = hashCode;
        }
    
        @Override
        public String getHashCode() {
            return hashCode.toString();
        }
    
        @Override
        public HashCode getHashCodeInternal() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:58 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. platforms/core-execution/build-cache/src/main/java/org/gradle/caching/internal/SimpleBuildCacheKey.java

    package org.gradle.caching.internal;
    
    import org.gradle.internal.hash.HashCode;
    
    public class SimpleBuildCacheKey implements BuildCacheKeyInternal {
        private final HashCode hashCode;
    
        public SimpleBuildCacheKey(HashCode hashCode) {
            this.hashCode = hashCode;
        }
    
        @Override
        public HashCode getHashCodeInternal() {
            return hashCode;
        }
    
        @Override
        public String getHashCode() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:58 UTC 2024
    - 1.4K bytes
    - Viewed (0)
Back to top