parent
99cfb88933
commit
f14e4beeb5
|
@ -132,6 +132,12 @@ void DataBuffer::deleteSpecial() {
|
||||||
RELEASE_SPECIAL(p, _workspace);
|
RELEASE_SPECIAL(p, _workspace);
|
||||||
_specialBuffer = nullptr;
|
_specialBuffer = nullptr;
|
||||||
_isOwnerSpecial = false;
|
_isOwnerSpecial = false;
|
||||||
|
|
||||||
|
// count out towards DataBuffer device, only if we're not in workspace
|
||||||
|
if (_workspace == nullptr) {
|
||||||
|
nd4j::memory::MemoryCounter::getInstance()->countOut(_deviceId, getLenInBytes());
|
||||||
|
nd4j::memory::MemoryCounter::getInstance()->countOut(nd4j::memory::MemoryType::DEVICE, getLenInBytes());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue