Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for TF_TensorFromProto (0.08 seconds)

  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);
    
    // --------------------------------------------------------------------------
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Click Count (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);
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 97.3K bytes
    - Click Count (0)
Back to Top