Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for truncate (0.19 sec)

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

    TempFile::~TempFile() {
      std::fstream::close();
      std::remove(name_.c_str());
    }
    
    const std::string TempFile::getName() const { return name_; }
    
    bool TempFile::truncate() {
      std::fstream::close();
      std::fstream::open(name_, std::ios::binary | std::ios::out);
      return std::fstream::is_open();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 26 14:56:58 GMT 2020
    - 1.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

      mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO);
    
      // O_WRONLY | O_CREAT | O_TRUNC:
      //   Open file for write and if file does not exist, create the file.
      //   If file exists, truncate its size to 0.
      int dst_fd = open(dst, O_WRONLY | O_CREAT | O_TRUNC, open_mode);
      if (dst_fd < 0) {
        close(src_fd);
        return -1;
      }
    
      // Both files have been opened, do the transfer.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jan 16 05:36:52 GMT 2020
    - 2.1K bytes
    - Viewed (1)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_helper.h

      TempFile(const std::string& temp_file_name, std::ios::openmode mode);
      TempFile(TempFile&& rhs);
      ~TempFile() override;
      const std::string getName() const;
      bool truncate();
    
     private:
      const std::string name_;
    };
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Jun 26 14:56:58 GMT 2020
    - 1.2K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

        if (!delete_status.ok()) {
          TF_SetStatusFromGCSStatus(delete_status, status);
          return;
        }
        // We truncate the data that are already uploaded.
        if (!outfile->truncate()) {
          TF_SetStatus(status, TF_INTERNAL,
                       "Could not truncate internal temporary file.");
          return;
        }
        *offset = static_cast<int64_t>(metadata->size());
        TF_SetStatus(status, TF_OK, "");
    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. RELEASE.md

            Existing usage with single inputs should still work as before.
    *   `tf.linalg`
        *   Add `tf.linalg.banded_triangular_solve`.
    *   `tf.random`:
        *   Add `tf.random.stateless_parameterized_truncated_normal`.
    *   `tf.ragged`:
        *   Add `tf.ragged.cross` and `tf.ragged.cross_hashed` operations.
    *   `tf.RaggedTensor`:
        *   `RaggedTensor.to_tensor()` now preserves static shape.
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Apr 29 19:17:57 GMT 2024
    - 727.7K bytes
    - Viewed (8)
  6. ci/official/utilities/extract_resultstore_links.py

              f'{url}\n\n')
          failure_msg += (
              f'Here\'s a fragment of the log containing the failure:\n\n'
              f'[ ... TRUNCATED ... ]\n\n'
              f'{invocation_results["log_fragment"]}\n'
              f'\n[ ... TRUNCATED ... ]\n'
          )
          failure = ElemTree.SubElement(
              testcase, elem_name,
              message=f'Bazel invocation {invocation_id} failed.')
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  7. tensorflow/c/env.h

    TF_CAPI_EXPORT extern void TF_FileStat(const char* filename,
                                           TF_FileStatistics* stats,
                                           TF_Status* status);
    
    // Creates or truncates the given filename and returns a handle to be used for
    // appending data to the file. If status is TF_OK, *handle is updated and the
    // caller is responsible for freeing it (see TF_CloseWritableFile).
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Sat Jan 09 02:53:27 GMT 2021
    - 9.6K bytes
    - Viewed (0)
Back to top