Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TF_TString_Dealloc (0.23 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)
Back to top