Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for TF_TensorToTensor (0.2 sec)

  1. tensorflow/c/c_api_experimental.cc

                    /*targets*/ nullptr, /*ntargets*/ 0,
                    /*run_metadata*/ nullptr, status);
      if (VLOG_IS_ON(1) && status->status.ok()) {
        tensorflow::Tensor tensor;
        if (tensorflow::TF_TensorToTensor(ret, &tensor).ok()) {
          VLOG(1) << "Dequeued tensor content: " << tensor.DebugString();
        }
      }
      return ret;
    }
    
    void TF_EnqueueNamedTensor(TF_Session* session, int tensor_id,
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      return (*pjrt_c_api_client)->pjrt_c_client();
    }
    
    PJRT_Buffer* TF_GetPjRtCBuffer(TF_Tensor* c_tensor, TF_Status* status) {
      tensorflow::Tensor tensor;
      auto s = tensorflow::TF_TensorToTensor(c_tensor, &tensor);
      if (!s.ok()) {
        status->status = s;
        return nullptr;
      }
      absl::StatusOr<PJRT_Buffer*> c_buffer =
          tensorflow::GetPjRtCBufferFromTensor(&tensor);
      if (!c_buffer.ok()) {
    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)
  3. tensorflow/c/eager/c_api.cc

          tensorflow::unwrap(ctx)->GetDevicePlacementPolicy());
    }
    
    TFE_TensorHandle* TFE_NewTensorHandle(const TF_Tensor* t, TF_Status* status) {
      tensorflow::Tensor tensor;
      status->status = tensorflow::TF_TensorToTensor(t, &tensor);
      if (!status->status.ok()) return nullptr;
    
      return tensorflow::wrap(tensorflow::TensorHandle::CreateLocalHandle(tensor));
    }
    
    void TFE_DeleteTensorHandle(TFE_TensorHandle* h) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 43.9K bytes
    - Viewed (2)
  4. tensorflow/c/c_api.cc

    // TF_TensorFromTensorV1 because the conversion to string is performed by the
    // python side of Session.
    static Status TF_TensorToTensorV1(const TF_Tensor* src, Tensor* dst) {
      Status status = TF_TensorToTensor(src, dst);
      if (!status.ok()) {
        return status;
      }
      if (dst->dtype() == tensorflow::DT_RESOURCE) {
        const auto tensor_interface =
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_test.cc

    #include "tensorflow/core/protobuf/meta_graph.pb.h"
    #include "tensorflow/core/util/equal_graph_def.h"
    
    namespace tensorflow {
    TF_Tensor* TF_TensorFromTensor(const Tensor& src, Status* status);
    Status TF_TensorToTensor(const TF_Tensor* src, Tensor* dst);
    
    namespace {
    
    static void ExpectHasSubstr(StringPiece s, StringPiece expected) {
      EXPECT_TRUE(absl::StrContains(s, expected))
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top