Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isopen (0.19 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      TF_SetStatus(status, TF_OK, "");
    }
    
    static void NewWritableFile(const TF_Filesystem* filesystem, const char* path,
                                TF_WritableFile* file, TF_Status* status) {
      FILE* f = fopen(path, "w");
      if (f == nullptr) {
        TF_SetStatusFromIOError(status, errno, path);
        return;
      }
    
      file->plugin_file = new tf_writable_file::PosixFile({strdup(path), f});
      TF_SetStatus(status, TF_OK, "");
    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)
  2. tensorflow/c/c_api_function_test.cc

    // check the data type.
    typedef std::pair<string, DataType> IOSpec;
    
    const char* kFeedStackToString = "File \"feed.cc\", line 10, in alpha";
    const char* kNegStackToString = "File \"neg.cc\", line 15, in beta";
    
    std::vector<IOSpec> M(const std::initializer_list<string>& names) {
      std::vector<IOSpec> v;
      for (const string& name : names) {
        v.push_back(IOSpec(name, DT_INVALID));
      }
      return v;
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      delete gcs_file;
    }
    
    void Append(const TF_WritableFile* file, const char* buffer, size_t n,
                TF_Status* status) {
      auto gcs_file = static_cast<GCSFile*>(file->plugin_file);
      if (!gcs_file->outfile.is_open()) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION,
                     "The internal temporary file is not writable.");
        return;
      }
      TF_VLog(3, "Append: gs://%s/%s size %u", gcs_file->bucket.c_str(),
    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)
Back to top