Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for brelaw (0.23 sec)

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

      if (dst_fd < 0) {
        close(src_fd);
        return -1;
      }
    
      // Both files have been opened, do the transfer.
      // Since errno would be overridden by `close` below, save it here.
      int error_code = 0;
      if (CopyFileContents(dst_fd, src_fd, size) < 0) error_code = errno;
    
      close(src_fd);
      close(dst_fd);
      if (error_code != 0) {
        errno = error_code;
        return -1;
    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)
  2. tensorflow/c/c_api.cc

                return metadata;
              }
            }
          }
          break;
    
        case tensorflow::AttrValue::kPlaceholder:
          metadata.is_list = 0;
          metadata.list_size = -1;
          metadata.type = TF_ATTR_PLACEHOLDER;
          metadata.total_size = -1;
          break;
    
        case tensorflow::AttrValue::kFunc:
          metadata.is_list = 0;
          metadata.list_size = -1;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    struct TF_VariableInfo {
      TF_VariableInfo() = delete;
      // TF_VariableInfo is constructed here by TensorFlow, and will be passed to
      // plugin as a opaque pointer. Plugin will need to call C APIs below to
      // operate on TF_VariableInfo (such as allocate temp tensor for the `var` held
      // by the underlying tensorflow::VariableInfo.
      TF_VariableInfo(int index, const std::string& name, tensorflow::Var* var) {
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      EXPECT_TF_OK(status_);
    
      auto result = ReadAll(dst);
      EXPECT_TF_OK(status_);
      EXPECT_EQ("test_old", result);
    }
    
    // These tests below are ported from
    // `//tensorflow/core/platform/cloud:gcs_file_system_test`
    TEST_F(GCSFilesystemTest, NewRandomAccessFile_NoBlockCache) {
      tf_gcs_filesystem::InitTest(filesystem_, false, 0, 0, 0, 0, 0, status_);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_test.cc

            TF_DeviceListType(devices.get(), device_index, status.get());
        ASSERT_EQ(TF_GetCode(status.get()), TF_OK) << TF_Message(status.get());
        if (device_type == "TPU") {
          has_tpu = true;
          break;
        }
      }
      if (has_tpu) {
        BasicTestsForTwoDevices(context.get(),
                                "/job:localhost/replica:0/task:0/device:TPU:0",
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  6. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

          read += r;
        } else if (r == 0) {
          TF_SetStatus(status, TF_OUT_OF_RANGE, "Read fewer bytes than requested");
          break;
        } else if (errno == EINTR || errno == EAGAIN) {
          // Retry
        } else {
          TF_SetStatusFromIOError(status, errno, posix_file->filename);
          break;
        }
      }
    
      return read;
    }
    
    }  // namespace tf_random_access_file
    
    // SECTION 2. Implementation for `TF_WritableFile`
    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)
  7. tensorflow/c/c_api_experimental.cc

      // Update the vector with information from `input_tensors` if provided.
      if (input_tensors != nullptr) {
        // Note that we take the address of the elements in `all_input_tensors`
        // below. Allocate enough space so that no reallocation happens, which will
        // make the pointers invalid.
        all_input_tensors.reserve(num_inputs);
        for (int i = 0; i < num_inputs; ++i) {
    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)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

            if (block->state == FetchState::FINISHED) {
              return TF_SetStatus(status, TF_OK, "");
            }
            // Re-loop in case of errors.
            break;
          case FetchState::FINISHED:
            return TF_SetStatus(status, TF_OK, "");
        }
      }
      return TF_SetStatus(
          status, TF_INTERNAL,
    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)
  9. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      Status status = env_->CreateDir(dirpath);
      if (!status.ok()) GTEST_SKIP() << "CreateDir() not supported: " << status;
    
      // If updating, make sure to update expected_children below.
      const std::vector<std::string> filenames = {
          GetURIForPath("dir/a_file"),
          GetURIForPath("dir/another_file"),
      };
      for (const auto& filename : filenames) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  10. tensorflow/c/eager/dlpack.cc

          dtype.code = DLDataTypeCode::kDLBool;
          break;
        case TF_DataType::TF_HALF:
        case TF_DataType::TF_FLOAT:
        case TF_DataType::TF_DOUBLE:
          dtype.code = DLDataTypeCode::kDLFloat;
          break;
        case TF_DataType::TF_INT8:
        case TF_DataType::TF_INT16:
        case TF_DataType::TF_INT32:
        case TF_DataType::TF_INT64:
          dtype.code = DLDataTypeCode::kDLInt;
          break;
        case TF_DataType::TF_UINT8:
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 12.8K bytes
    - Viewed (0)
Back to top