Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Swap (0.16 sec)

  1. tensorflow/c/checkpoint_reader.cc

        if (!v2_reader_->status().ok()) {
          tsl::Set_TF_Status_from_Status(status, v2_reader_->status());
          return;
        }
        auto result = BuildV2VarMaps();
        var_to_shape_map_.swap(result.first);
        var_to_data_type_map_.swap(result.second);
      } else {
        reader_.reset(new TensorSliceReader(filename));
        if (!reader_->status().ok()) {
          tsl::Set_TF_Status_from_Status(status, reader_->status());
          return;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Aug 25 21:29:12 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

              block->data.resize(bytes_transferred, 0);
              // Shrink the data capacity to the actual size used.
              // NOLINTNEXTLINE: shrink_to_fit() may not shrink the capacity.
              std::vector<char>(block->data).swap(block->data);
              downloaded_block = true;
              block->state = FetchState::FINISHED;
            } else {
              block->state = FetchState::ERROR;
            }
            block->cond_var.SignalAll();
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
Back to top