MCPcopy Create free account
hub / github.com/KomputeProject/kompute / ~Tensor

Method ~Tensor

src/Tensor.cpp:61–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61Tensor::~Tensor()
62{
63 KP_LOG_DEBUG("Kompute Tensor destructor started. Type: {}",
64 Tensor::toString(this->tensorType()));
65
66 if (this->mDevice) {
67 this->destroy();
68 }
69
70 KP_LOG_DEBUG("Kompute Tensor destructor success");
71}
72
73void
74Tensor::rebuild(void* data,

Callers

nothing calls this directly

Calls 2

tensorTypeMethod · 0.95
destroyMethod · 0.95

Tested by

no test coverage detected