I have a af::array
variable which is 3000000*3:
int main()
{
// inputArray is the pointer which fills tempArray
af::array tempArray = af::array(af::dim4(3000000,3),inputArray);
tempArray(tempArray < 0) = 0;
}
the problem is that, I want to delete this array so that my memory gets released, it fills my dedicated GPU memory. How should I do it?
Before using this variable enter image description here
after using this variable: enter image description here