Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 992 for size_t (0.18 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

    }
    
    TEST(RamFileBlockCacheTest, PassThrough) {
      const string want_filename = "foo/bar";
      const size_t want_offset = 42;
      const size_t want_n = 1024;
      int calls = 0;
      auto fetcher = [&calls, want_filename, want_offset, want_n](
                         const string& got_filename, size_t got_offset,
                         size_t got_n, char* buffer, TF_Status* status) -> int64_t {
        EXPECT_EQ(got_filename, want_filename);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  2. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    -#  endif
    -# endif
    -
    -__STRING_INLINE size_t __strcspn_c1 (const char *__s, int __reject);
    -__STRING_INLINE size_t
    -__strcspn_c1 (const char *__s, int __reject)
    -{
    -  size_t __result = 0;
    -  while (__s[__result] != '\0' && __s[__result] != __reject)
    -    ++__result;
    -  return __result;
    -}
    -
    -__STRING_INLINE size_t __strcspn_c2 (const char *__s, int __reject1,
    -				     int __reject2);
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

      /// call).
      typedef std::function<int64_t(const std::string& filename, size_t offset,
                                    size_t buffer_size, char* buffer,
                                    TF_Status* status)>
          BlockFetcher;
    
      RamFileBlockCache(size_t block_size, size_t max_bytes, uint64_t max_staleness,
                        BlockFetcher block_fetcher,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.h

    } GCSFile;
    
    // This function is used to initialize a filesystem without the need of setting
    // manually environement variables.
    void InitTest(TF_Filesystem* filesystem, bool compose, uint64_t block_size,
                  size_t max_bytes, uint64_t max_staleness,
                  uint64_t stat_cache_max_age, size_t stat_cache_max_entries,
                  TF_Status* status);
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:37:41 GMT 2020
    - 5.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/grappler/grappler_test.cc

      std::unique_ptr<size_t[]> lens(new size_t[item.fetch.size()]);
      std::unique_ptr<char[]> storage(new char[storage_size]);
      TF_GetFetchNodesList(c_item, values.get(), lens.get(), item.fetch.size(),
                           storage.get(), storage_size, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      for (size_t i = 0; i < item.fetch.size(); ++i) {
        EXPECT_EQ(item.fetch[i].size(), lens[i]) << i;
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

      size_t start = block_size_ * (offset / block_size_);
      size_t finish = block_size_ * ((offset + n) / block_size_);
      if (finish < offset + n) {
        finish += block_size_;
      }
      size_t total_bytes_transferred = 0;
      // Now iterate through the blocks, reading them one at a time.
      for (size_t pos = start; pos < finish; pos += block_size_) {
        Key key = std::make_pair(filename, pos);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  7. tensorflow/c/eager/abstract_operation.h

                                         size_t length) = 0;
      virtual Status SetAttrTensor(const char* attr_name,
                                   AbstractTensorInterface* tensor) = 0;
      virtual Status SetAttrStringList(const char* attr_name,
                                       const void* const* values,
                                       const size_t* lengths, int num_values) = 0;
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_testlib.h

    // Helper to un-pack `num_replicas` TFE_TensorHandles from one parallel handle.
    template <std::size_t num_replicas>
    void ExtractPerDeviceValues(
        TFE_Context* context, TFE_TensorHandle* input,
        std::array<TensorHandlePtr, num_replicas>* components, TF_Status* status);
    
    // Helper to pack `num_replicas` TFE_TensorHandles into one parallel handle.
    template <std::size_t num_replicas>
    TensorHandlePtr CreatePerDeviceValues(
        TFE_Context* context,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Feb 09 01:12:35 GMT 2021
    - 6.9K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

          block_size, max_bytes, max_staleness,
          [this](const std::string& filename, size_t offset, size_t buffer_size,
                 char* buffer, TF_Status* status) {
            return LoadBufferFromGCS(filename, offset, buffer_size, buffer, this,
                                     status);
          });
    
      uint64_t stat_cache_max_age = kStatCacheDefaultMaxAge;
      size_t stat_cache_max_entries = kStatCacheDefaultMaxEntries;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/grappler/grappler.h

    // least `storage_size` bytes in length.  `num_values` and `storage` can be
    // obtained from TF_GetNodesToPreserveSize
    //
    // Fails if storage_size is too small to hold the requested number of strings.
    TF_CAPI_EXPORT extern void TF_GetNodesToPreserveList(
        const TF_GrapplerItem* item, char** values, size_t* lengths, int num_values,
        void* storage, size_t storage_size, TF_Status* status);
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
Back to top