Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_TensorFromProto (0.09 sec)

  1. tensorflow/c/c_api.h

    // TensorFlow library. TensorFlow uses semantic versioning.
    TF_CAPI_EXPORT extern const char* TF_Version(void);
    
    // Parsing a serialized TensorProto into a TF_Tensor.
    TF_CAPI_EXPORT extern void TF_TensorFromProto(const TF_Buffer* from,
                                                  TF_Tensor* to, TF_Status* status);
    
    // --------------------------------------------------------------------------
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      TF_Tensor* t_c = TF_NewTensor(TF_FLOAT, dims, 2, values, num_bytes,
                                    &Deallocator, &deallocator_called);
    
      TF_Status* status = TF_NewStatus();
      TF_TensorFromProto(t_buffer, t_c, status);
      EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
    
      EXPECT_EQ(1.0, *(static_cast<float*>(TF_TensorData(t_c))));
      TF_DeleteStatus(status);
      TF_DeleteTensor(t_c);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top