Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for if (0.32 sec)

  1. ci/official/containers/linux_arm64/devel.usertools/code_check_full.bats

      if [[ -s $BATS_TEST_TMPDIR/actual_extra_licenses ]]; then
        echo "Please remove the following extra licenses from $LICENSES_TARGET:"
        cat $BATS_TEST_TMPDIR/actual_extra_licenses
      fi
    
      if [[ -s $BATS_TEST_TMPDIR/actual_missing_licenses ]]; then
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  2. tensorflow/c/eager/c_api.h

                                                      TF_Status* status);
    
    // Returns the device of the operation that produced `h`. If `h` was produced by
    // a copy, returns the destination device of the copy. Note that the returned
    // device name is not always the device holding the tensor handle's memory. If
    // you want the latter, use TFE_TensorHandleBackingDeviceName. This function
    // will block till the operation that produces `h` has completed.
    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)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

        // Perform this action in a cleanup callback to avoid locking mu_ after
        // locking block->mu.
        if (downloaded_block) {
          absl::MutexLock l(&mu_);
          // Do not update state if the block is already to be evicted.
          if (block->timestamp != 0) {
            // Use capacity() instead of size() to account for all  memory
            // used by the cache.
    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)
  4. tensorflow/c/experimental/filesystem/modular_filesystem.cc

                                          TransactionToken* token,
                                          uint64* file_size) {
      if (ops_->get_file_size == nullptr) {
        FileStatistics stat;
        Status status = Stat(fname, &stat);
        if (!status.ok()) return status;
        if (stat.is_directory)
          return errors::FailedPrecondition("Called GetFileSize on a directory");
    
        *file_size = stat.length;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Sep 06 19:12:29 GMT 2023
    - 23.1K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        EXPECT_EQ(n, block_size);
        EXPECT_EQ(offset % block_size, 0);
        size_t bytes_to_copy = 0;
        if (offset == 0) {
          // The first block (16 bytes) of the file.
          memset(buffer, 'x', n);
          bytes_to_copy = n;
          first_block = true;
        } else if (offset == block_size) {
          // The second block (8 bytes) of the file.
          bytes_to_copy = file_size - block_size;
    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)
  6. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      ASSERT_EQ(0, device_id) << device_id;
    
      // Disable the test if no GPU is present.
      string gpu_device_name;
      if (GetDeviceName(ctx, &gpu_device_name, "GPU")) {
        TFE_TensorHandle* hgpu = TFE_TensorHandleCopyToDevice(
            hcpu, ctx, gpu_device_name.c_str(), status.get());
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  7. tensorflow/c/eager/tape.h

      auto it = tensor_usage_.find(tensor_id);
      if (it == tensor_usage_.end()) {
        return;
      }
      it->second--;
      if (it->second != 0) {
        return;
      }
      tensor_usage_.erase(it);
      auto tensor_op_it = tensor_tape_.find(tensor_id);
      if (tensor_op_it == tensor_tape_.end()) {
        return;
      }
      const int64_t op_id = tensor_op_it->second;
      if (op_id == -1) {
        // Do not delete watched tensors.
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  8. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      struct stat st;
      if (stat(dst, &st) != 0) {
        if (errno != ENOENT) {
          TF_SetStatusFromIOError(status, errno, dst);
          return;
        }
      } else if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "target path is a directory");
        return;
      }
    
      // We cannot rename directories yet, so prevent this.
      if (stat(src, &st) != 0) {
        TF_SetStatusFromIOError(status, errno, src);
    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)
  9. tensorflow/c/c_api_experimental.cc

      if (!status->status.ok()) return nullptr;
    
      if (input_index >= op_def->input_arg_size() || input_index < 0) {
        status->status = tensorflow::errors::InvalidArgument(
            input_index, " out of range for ", op_name);
        return nullptr;
      }
    
      const tensorflow::OpDef_ArgDef& input_arg = op_def->input_arg()[input_index];
    
      if (input_arg.number_attr().empty()) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  10. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

     				   as DEAD_PROCESS.  */
     
    diff --git a/sysdeps/unix/sysv/linux/if_index.c b/sysdeps/unix/sysv/linux/if_index.c
    index 8ba5eae..b620d21 100644
    --- a/sysdeps/unix/sysv/linux/if_index.c
    +++ b/sysdeps/unix/sysv/linux/if_index.c
    @@ -38,12 +38,19 @@ __if_nametoindex (const char *ifname)
       return 0;
     #else
       struct ifreq ifr;
    +  if (strlen (ifname) >= IFNAMSIZ)
    +    {
    +      __set_errno (ENODEV);
    Others
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
Back to top