Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Sellers (0.18 sec)

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

    }
    
    TEST(RamFileBlockCacheTest, ParallelReads) {
      // This fetcher won't respond until either `callers` threads are calling it
      // concurrently (at which point it will respond with success to all callers),
      // or 10 seconds have elapsed (at which point it will respond with an error).
      const int callers = 4;
      BlockingCounter counter(callers);
      auto fetcher = [&counter](const string& filename, size_t offset, size_t n,
    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. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_portable.cc

      std::unique_ptr<char[]> buffer(new char[kPosixCopyFileBufferSize]);
    
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
      // When `sendfile` returns 0 we stop copying and let callers handle this.
      while (offset < size && rc > 0) {
        size_t chunk = size - offset;
        if (chunk > kPosixCopyFileBufferSize) chunk = kPosixCopyFileBufferSize;
    
        rc = read(src_fd, buffer.get(), chunk);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/immediate_execution_tensor_handle.h

      virtual AbstractTensorInterface* Resolve(Status* status) = 0;
    
      std::string DebugString() const override;
    
      // Returns a Boolean hint indicating whether callers should prefer
      // `SummarizeValue` to resolving this handle and formatting the tensor.
      //
      // For example some tensor handles may represent distributed values, in which
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Mar 10 21:56:24 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/c/c_test_util.cc

      TF_AddInput(desc, {input, 0});
      TF_SetAttrInt(desc, "num_split", 3);
      TF_SetAttrType(desc, "T", TF_INT32);
      // Set device to CPU since there is no version of split for int32 on GPU
      // TODO(iga): Convert all these helpers and tests to use floats because
      // they are usually available on GPUs. After doing this, remove TF_SetDevice
      // call in c_api_function_test.cc
      TF_SetDevice(desc, "/cpu:0");
      *op = TF_FinishOperation(desc, s);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  5. tensorflow/c/eager/c_api.h

        TFE_TensorHandle* h, TF_Status* status);
    
    // This function will block till the operation that produces `h` has
    // completed. The memory returned might alias the internal memory used by
    // TensorFlow. Hence, callers should not mutate this memory (for example by
    // modifying the memory region pointed to by TF_TensorData() on the returned
    // TF_Tensor).
    TF_CAPI_EXPORT extern TF_Tensor* TFE_TensorHandleResolve(TFE_TensorHandle* h,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  6. tensorflow/c/c_api.cc

            shape_handle, static_cast<DataType>(types[i]));
      }
    
      ic->set_output_handle_shapes_and_types(output.index, shape_and_type_vec);
    }
    
    // Helpers for loading a TensorFlow plugin (a .so file).
    Status LoadDynamicLibrary(const char* library_filename, void** result,
                              const void** buf, size_t* len);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.h

    #include <dirent.h>
    #include <sys/stat.h>
    
    namespace tf_posix_filesystem {
    
    // Copies up to `size` of `src` to `dst`, creating destination if needed.
    //
    // Callers should pass size of `src` in `size` and the permissions of `src` in
    // `mode`. The later is only used if `dst` needs to be created.
    int TransferFileContents(const char* src, const char* dst, mode_t mode,
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/filesystem/plugins/posix/copy_file_linux.cc

    int CopyFileContents(int dst_fd, int src_fd, off_t size) {
      off_t offset = 0;
      int bytes_transferred = 0;
      int rc = 1;
      // When `sendfile` returns 0 we stop copying and let callers handle this.
      while (offset < size && rc > 0) {
        // Use uint64 for safe compare SSIZE_MAX
        uint64_t chunk = size - offset;
        if (chunk > SSIZE_MAX) chunk = SSIZE_MAX;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Nov 22 21:23:55 GMT 2019
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/next_pluggable_device/c_api.h

    // set options for creating a PJRT client. Passes nullptr for create_options and
    // 0 for num_options if no options need to be set. You can use
    // ConvertToPjRtNamedValueList in
    // tensorflow/compiler/xla/pjrt/c/pjrt_c_api_helpers.h to generate the options.
    TF_CAPI_EXPORT extern void TF_CreateAndSetPjRtCApiClient(
        const char* device_type, TF_Status* status, PJRT_NamedValue* create_options,
        int num_options);
    
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Dec 20 20:01:06 GMT 2023
    - 7.2K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/filesystem_interface.h

      /// implemented by a filesystem registered to handle the `fs://` scheme.
      ///
      /// A new `char*` buffer must be allocated by this method. Core TensorFlow
      /// manages the lifetime of the buffer after the call. Thus, all callers of
      /// this method must take ownership of the returned pointer.
      ///
      /// The implementation should clean up paths, including but not limited to,
      /// removing duplicate `/`s, and resolving `..` and `.`.
      ///
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 17:36:54 GMT 2022
    - 53.1K bytes
    - Viewed (0)
Back to top