Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 800 for size_t (0.74 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 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  3. 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)
  4. 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 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/c/c_api_test.cc

                              std::unique_ptr<const void*[]>* ptrs,
                              std::unique_ptr<size_t[]>* lens) {
      ptrs->reset(new const void*[v.size()]);
      lens->reset(new size_t[v.size()]);
      for (size_t i = 0; i < v.size(); ++i) {
        (*ptrs)[i] = v[i].data();
        (*lens)[i] = v[i].size();
      }
    }
    
    class CApiColocationTest : public ::testing::Test {
     protected:
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  7. tensorflow/c/eager/gradients_internal.h

                               const char* value, size_t length, ForwardOperation*);
    Status SetAttrTensor(AbstractOperation*, const char* attr_name,
                         AbstractTensorInterface* tensor, ForwardOperation*);
    Status SetAttrStringList(AbstractOperation*, const char* attr_name,
                             const void* const* values, const size_t* lengths,
                             int num_values, ForwardOperation*);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sun Oct 24 11:27:35 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  8. 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 30 12:39:09 GMT 2024
    - Last Modified: Wed Jul 14 16:20:41 GMT 2021
    - 6.8K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api.cc

          methods));
    }
    
    TFE_TensorHandle* TFE_NewTensorHandleFromDeviceMemory(
        TFE_Context* ctx, const char* device_name, TF_DataType dtype,
        const int64_t* dims, int num_dims, void* data, size_t len,
        void (*deallocator)(void* data, size_t len, void* arg),
        void* deallocator_arg, TF_Status* status) {
      tensorflow::Device* device = nullptr;
      tensorflow::EagerContext* context =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  10. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    static int64_t Read(const TF_RandomAccessFile* file, uint64_t offset, size_t n,
                        char* buffer, TF_Status* status) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      char* dst = buffer;
      int64_t read = 0;
    
      while (n > 0) {
        // Some platforms, notably macs, throw `EINVAL` if `pread` is asked to read
        // more than fits in a 32-bit integer.
        size_t requested_read_length;
        if (n > INT32_MAX)
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
Back to top