Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7191

why google colab crash with big matrix?

$
0
0

i have this code:

@numba.jit(nopython=True)def ReducTestor(fil,col,mat):    for i in range (fil):    if mat[i][0]!=3:      j=i+1      while j<fil :        for k in range(col):          if mat[i][k]==1:            if mat[j][k]==0:              mat[j][0]=3        j=j+1 ReducTestor (col,fil,mat) 

i successfully run with a 7x5 array (just for check), but when i try with a 27113x47 google colab just crash.

log said this:

Mar 17, 2021, 9:21:02 AM    WARNING WARNING:root:kernel 7282c88d-e99f-44ec-b987-90af90f87699 restartedMar 17, 2021, 9:21:02 AM    INFO    KernelRestarter: restarting kernel (1/5), keep random ports

what could be happend? (is a python code)


Viewing all articles
Browse latest Browse all 7191

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>