Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Scheme (0.14 sec)

  1. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

    namespace tensorflow {
    
    // Checks that all schemes provided by a plugin are valid.
    // TODO(b/139060984): More validation could be done here, based on supported
    // charset, maximum length, etc. Punting it for later.
    static Status ValidateScheme(const char* scheme) {
      if (scheme == nullptr)
        return errors::InvalidArgument(
            "Attempted to register filesystem with `nullptr` URI scheme");
      return OkStatus();
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

                      std::string* bucket, std::string* object, TF_Status* status) {
      size_t scheme_end = fname.find("://") + 2;
      if (fname.substr(0, scheme_end + 1) != "gs://") {
        TF_SetStatus(status, TF_INVALID_ARGUMENT,
                     "GCS path doesn't start with 'gs://'.");
        return;
      }
    
      size_t bucket_end = fname.find('/', scheme_end + 1);
      if (bucket_end == std::string::npos) {
        TF_SetStatus(status, TF_INVALID_ARGUMENT,
    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)
  3. tensorflow/c/eager/c_api.h

    #ifdef __cplusplus
    } /* end extern "C" */
    #endif
    
    #ifdef __cplusplus
    // A workaround to ease conversion to and from numpy objects and
    // TFE_TensorHandle's.
    //
    // TODO(ashankar): Figure out an alternative scheme that precludes the need for
    // these API-boundary breaking methods.
    namespace tensorflow {
    class Tensor;
    }  // namespace tensorflow
    
    TFE_TensorHandle* TFE_NewTensorHandle(const tensorflow::Tensor& t,
    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)
  4. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    void TF_InitPlugin(TF_FilesystemPluginInfo* info) {
      info->plugin_memory_allocate = plugin_memory_allocate;
      info->plugin_memory_free = plugin_memory_free;
      info->num_schemes = 2;
      info->ops = static_cast<TF_FilesystemPluginOps*>(
          plugin_memory_allocate(info->num_schemes * sizeof(info->ops[0])));
      ProvideFilesystemSupportFor(&info->ops[0], "");
      ProvideFilesystemSupportFor(&info->ops[1], "file");
    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