Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for proto_len (0.12 sec)

  1. tensorflow/c/tf_buffer.cc

    TF_Buffer* TF_NewBuffer() { return new TF_Buffer{nullptr, 0, nullptr}; }
    
    TF_Buffer* TF_NewBufferFromString(const void* proto, size_t proto_len) {
      void* copy = tensorflow::port::Malloc(proto_len);
      std::memcpy(copy, proto, proto_len);
    
      TF_Buffer* buf = new TF_Buffer;
      buf->data = copy;
      buf->length = proto_len;
      buf->data_deallocator = [](void* data, size_t length) {
        tensorflow::port::Free(data);
      };
      return buf;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top