Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,660 for hash_code (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.h

               device == rhs.device && op == rhs.op;
      }
    
      // Make ResourceHandle hashable.
      friend ::llvm::hash_code hash_value(const ResourceHandle& resource_handle);
    
      StringRef container;
      StringRef name;
      StringRef device;
      Operation* op = nullptr;
    };
    
    // Make ResourceHandle hashable.
    inline ::llvm::hash_code hash_value(const ResourceHandle& resource_handle) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 03 19:26:14 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. guava/src/com/google/common/hash/HashCode.java

       * byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this
       * array or else you will break the immutability contract of {@code HashCode}.
       */
      byte[] getBytesInternal() {
        return asBytes();
      }
    
      /**
       * Returns whether this {@code HashCode} and that {@code HashCode} have the same value, given that
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/hash/HashCode.java

       * byte-based hashcode. Otherwise it returns {@link HashCode#asBytes}. Do <i>not</i> mutate this
       * array or else you will break the immutability contract of {@code HashCode}.
       */
      byte[] getBytesInternal() {
        return asBytes();
      }
    
      /**
       * Returns whether this {@code HashCode} and that {@code HashCode} have the same value, given that
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 20 18:43:59 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. guava-tests/test/com/google/common/hash/HashTestUtils.java

          HashCode hashcode1 = hashFunction.hashInt(value);
          HashCode hashcode2 = hashFunction.hashInt(value);
          Assert.assertEquals(hashcode1, hashcode2); // idempotent
          Assert.assertEquals(hashFunction.bits(), hashcode1.bits());
          Assert.assertEquals(hashFunction.bits(), hashcode1.asBytes().length * 8);
          hashcodes.add(hashcode1);
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 25.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top