Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for access (0.25 sec)

  1. tensorflow/c/experimental/filesystem/plugins/windows/windows_filesystem.cc

    // SECTION 1. Implementation for `TF_RandomAccessFile`
    // ----------------------------------------------------------------------------
    namespace tf_random_access_file {
    
    // TODO(b/139060984): Implement later
    
    }  // namespace tf_random_access_file
    
    // SECTION 2. Implementation for `TF_WritableFile`
    // ----------------------------------------------------------------------------
    namespace tf_writable_file {
    
    C++
    - Registered: Tue Apr 09 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:21:15 GMT 2022
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      TF_SetFilesystemVersionMetadata(ops);
      ops->scheme = strdup(uri);
    
      ops->random_access_file_ops = static_cast<TF_RandomAccessFileOps*>(
          plugin_memory_allocate(TF_RANDOM_ACCESS_FILE_OPS_SIZE));
      ops->random_access_file_ops->cleanup = tf_random_access_file::Cleanup;
      ops->random_access_file_ops->read = tf_random_access_file::Read;
    
      ops->writable_file_ops = static_cast<TF_WritableFileOps*>(
    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)
  3. tensorflow/c/c_api_experimental.cc

          tensorflow::ContextFromInterface(tensorflow::unwrap(ctx));
      auto collective_executor_handle = context->GetCollectiveExecutorHandle();
      tensorflow::Notification done;
      collective_executor_handle->get()->remote_access()->CheckPeerHealth(
          task, timeout_in_ms, [&done, status](const Status& s) {
            status->status = s;
            done.Notify();
          });
      done.WaitForNotification();
    }
    
    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)
  4. tensorflow/c/c_api.cc

      return response;
    }
    
    int TF_DeviceListCount(const TF_DeviceList* list) {
      return list->response.size();
    }
    
    #define TF_DEVICELIST_METHOD(return_type, method_name, accessor, err_val) \
      return_type method_name(const TF_DeviceList* list, const int index,     \
                              TF_Status* status) {                            \
    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)
  5. tensorflow/c/experimental/filesystem/modular_filesystem.cc

      if (ops_->new_random_access_file == nullptr)
        return errors::Unimplemented(tensorflow::strings::StrCat(
            "Filesystem for ", fname, " does not support NewRandomAccessFile()"));
    
      UniquePtrTo_TF_Status plugin_status(TF_NewStatus(), TF_DeleteStatus);
      auto file = std::make_unique<TF_RandomAccessFile>();
      std::string translated_name = TranslateName(fname);
      ops_->new_random_access_file(filesystem_.get(), translated_name.c_str(),
    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)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

                                &gcs_file->gcs_client, status_));
    
      read = tf_random_access_file::Read(file, 0, content_view.length(), result,
                                         status_);
      ASSERT_TF_OK(status_);
      ASSERT_TRUE(CompareSubString(0, content_view.length(), result, read));
    
      read = tf_random_access_file::Read(file, 0, 4, result, status_);
      ASSERT_TF_OK(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)
  7. tensorflow/c/c_api_test.cc

        data[i] = 0;
      }
      if (TF_TensorDefaultAlignment() > 0) {
        EXPECT_TRUE(TF_TensorIsAligned(a));
      }
      TF_DeleteTensor(a);
    }
    
    TEST(CAPI, TestTensorIsNotAligned) {
      // Test unaligned access via a Slice.
      Tensor x(DT_FLOAT, TensorShape({30}));
      x.flat<float>().setConstant(0.0);
    
      // Take an unaligned slice.
      Tensor y = x.Slice(1, 13);
      Status status;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  8. tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc

      TF_RETURN_IF_ERROR(
          CheckABI(ops->filesystem_ops_abi, TF_FILESYSTEM_OPS_ABI, "filesystem"));
    
      if (ops->random_access_file_ops != nullptr)
        TF_RETURN_IF_ERROR(CheckABI(ops->random_access_file_ops_abi,
                                    TF_RANDOM_ACCESS_FILE_OPS_ABI,
                                    "random access file"));
    
      if (ops->writable_file_ops != nullptr)
        TF_RETURN_IF_ERROR(CheckABI(ops->writable_file_ops_abi,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 07 22:08:43 GMT 2023
    - 12.8K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api_unified_experimental_test.cc

      // Execute.
      TF_ExecuteOperation(add_op, 2, inputs, add_outputs, status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // Test that full type information can be accessed.
      auto outs = unwrap(add_outputs);
      auto h = outs->outputs[0];
      ASSERT_NE(h, nullptr);
      ASSERT_EQ(h->FullType().type_id(), TFT_UNSET);
      ASSERT_EQ(unwrap(inputs[0])->FullType().type_id(), TFT_UNSET);
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

      TF_SetFilesystemVersionMetadata(ops);
      ops->scheme = strdup(uri);
    
      ops->random_access_file_ops = static_cast<TF_RandomAccessFileOps*>(
          plugin_memory_allocate(TF_RANDOM_ACCESS_FILE_OPS_SIZE));
      ops->random_access_file_ops->cleanup = tf_random_access_file::Cleanup;
      ops->random_access_file_ops->read = tf_random_access_file::Read;
    
      ops->writable_file_ops = static_cast<TF_WritableFileOps*>(
    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