You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried below code and usage rate of my memory increased up to around 10GB.
// 配列を宣言するdouble[]array=newdouble[110];// 乱数を生成するRandomrnd=newRandom();// 配列に乱数を代入する// make random double arrayfor(inti=0;i<array.Length;i++){array[i]=rnd.NextDouble();}// make new NDarray in loopfor(inti=0;i<1000000;i++){NDArrayarray2=np.array(array);// NDArray array2 = np.argmin(array); also cause same trouble}
This is also caused when this is used as function.
I modified this and add GC.Collect().
This make the code usage rate of my memory, but the calculation time increased.
// 配列を宣言するdouble[]array=newdouble[110];// 乱数を生成するRandomrnd=newRandom();// 配列に乱数を代入する// make random double arrayfor(inti=0;i<array.Length;i++){array[i]=rnd.NextDouble();}// make new NDarray in loopfor(inti=0;i<1000000;i++){NDArrayarray2=np.array(array);if(i%10000==0){GC.Collect();}}
What should I do next?
Do you have any ideas?
The text was updated successfully, but these errors were encountered:
Hi,
I tried below code and usage rate of my memory increased up to around 10GB.
This is also caused when this is used as function.
I modified this and add GC.Collect().
This make the code usage rate of my memory, but the calculation time increased.
What should I do next?
Do you have any ideas?
The text was updated successfully, but these errors were encountered: