Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 749 for Block (0.15 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

      bool BlockNotStale(const std::shared_ptr<Block>& block)
          ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_);
    
      /// Look up a Key in the block cache.
      std::shared_ptr<Block> Lookup(const Key& key) ABSL_LOCKS_EXCLUDED(mu_);
    
      void MaybeFetch(const Key& key, const std::shared_ptr<Block>& block,
                      TF_Status* status) ABSL_LOCKS_EXCLUDED(mu_);
    
      /// Trim the block cache to make room for another entry.
    C
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

            block->data.resize(block_size_, 0);
            int64_t bytes_transferred;
            bytes_transferred = block_fetcher_(key.first, key.second, block_size_,
                                               block->data.data(), status);
            block->mu.Lock();  // Reacquire the lock immediately afterwards
            if (TF_GetCode(status) == TF_OK) {
              block->data.resize(bytes_transferred, 0);
    C++
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        }
        TF_SetStatus(status, TF_OK, "");
        return bytes_transferred;
      };
      for (size_t block_size = 2; block_size <= 4; block_size++) {
        // Make a cache of N-byte block size (1 block) and verify that reads of
        // varying offsets and lengths return correct data.
        tf_gcs_filesystem::RamFileBlockCache cache(block_size, block_size, 0,
                                                   fetcher);
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  4. cmd/namespace-lock.go

    	timeout.LogSuccess(UTCNow().Sub(start))
    	return LockContext{ctx: newCtx, cancel: cancel}, nil
    }
    
    // Unlock - block until write lock is released.
    func (di *distLockInstance) Unlock(lc LockContext) {
    	if lc.cancel != nil {
    		lc.cancel()
    	}
    	di.rwMutex.Unlock(lc.ctx)
    }
    
    // RLock - block until read lock is taken or timeout has occurred.
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/MD4.java

         *    <p>
         *    Transforms context based on 512 bits from input block starting
         *    from the offset'th byte.
         *
         *    @param    block    input sub-array.
         *    @param    offset    starting position of sub-array.
         */
        private void transform (byte[] block, int offset) {
    
            // encodes 64 bytes from input block into an array of 16 32-bit
            // entities. Use A as a temp var.
    Java
    - Registered: Sun Apr 14 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/Base64.java

            length -= remainder;
            int block;
            int i = 0;
            while (i < length) {
                block = ((bytes[i++] & 0xff) << 16) | ((bytes[i++] & 0xff) << 8) |
                        (bytes[i++] & 0xff);
                buffer.append(ALPHABET.charAt(block >>> 18));
                buffer.append(ALPHABET.charAt((block >>> 12) & 0x3f));
                buffer.append(ALPHABET.charAt((block >>> 6) & 0x3f));
    Java
    - Registered: Sun Apr 14 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 3.7K bytes
    - Viewed (0)
  7. cmd/erasure-utils.go

    	var totalWritten int64
    
    	// Write all data blocks to dst.
    	for _, block := range enBlocks[:dataBlocks] {
    		// Skip blocks until we have reached our offset.
    		if offset >= int64(len(block)) {
    			// Decrement offset.
    			offset -= int64(len(block))
    			continue
    		}
    
    		// Skip until offset.
    		block = block[offset:]
    
    		// Reset the offset for next iteration to read everything
    		// from subsequent blocks.
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h

    typedef struct GCSFile {
      google::cloud::storage::Client gcs_client;  // owned
      bool compose;
      absl::Mutex block_cache_lock;
      std::shared_ptr<RamFileBlockCache> file_block_cache
          ABSL_GUARDED_BY(block_cache_lock);
      uint64_t block_size;  // Reads smaller than block_size will trigger a read
                            // of block_size.
      std::unique_ptr<ExpiringLRUCache<GcsFileStat>> stat_cache;
    C
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  9. build-logic/binary-compatibility/src/test/kotlin/gradlebuild/binarycompatibility/AbstractBinaryCompatibilityTest.kt

                block()
            }
    
        internal
        fun checkBinaryCompatibleJava(v1: String = "", v2: String, block: CheckResult.() -> Unit = {}): CheckResult =
            runJavaBinaryCompatibilityCheck(v1, v2) {
                assertBinaryCompatible()
                block()
            }
    
        internal
        fun checkNotBinaryCompatibleJava(v1: String = "", v2: String, block: CheckResult.() -> Unit = {}): CheckResult =
    Plain Text
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Mon Sep 25 13:49:37 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  10. src/archive/tar/format.go

    // nearest block edge where 0 <= n < blockSize.
    func blockPadding(offset int64) (n int64) {
    	return -offset & (blockSize - 1)
    }
    
    var zeroBlock block
    
    type block [blockSize]byte
    
    // Convert block to any number of formats.
    func (b *block) toV7() *headerV7       { return (*headerV7)(b) }
    func (b *block) toGNU() *headerGNU     { return (*headerGNU)(b) }
    Go
    - Registered: Tue Apr 16 11:13:10 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
Back to top