Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_TString_Dealloc (0.21 sec)

  1. tensorflow/c/tf_tensor.cc

      if (Type() == DT_STRING && NumElements() > 0) {
        TF_TString* data = static_cast<TF_TString*>(Data());
        if (CanMove() && data != nullptr) {
          for (int64_t i = 0; i < NumElements(); ++i) {
            TF_TString_Dealloc(&data[i]);
          }
        }
      }
      delete this;
    }
    
    bool TensorInterface::CanMove() const {
      // It is safe to move the Tensor if and only if we own the unique reference to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

                absl::string_view(TF_TString_GetDataPointer(t_out_tstr),
                                  TF_TString_GetSize(t_out_tstr)));
      TF_DeleteTensor(t_out);
      TF_TString_Dealloc(&tstr[0]);
    }
    
    TEST_F(CApiAttributesTest, TensorList) {
      const char tensor1[] = {5, 7};
      const int64_t dims1[] = {1, 2};
      const size_t ndims1 = TF_ARRAYSIZE(dims1);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top