Skip to main content
added 113 characters in body
Source Link
tiago
  • 23.7k
  • 13
  • 75
  • 89

Use the del statement:

del M

And python will take careby the way, a float64 array of shape (1000, 1000) takes only 7 Mb. If you're having memory problems, it's likely that the restproblem is elsewhere.

Use the del statement:

del M

And python will take care of the rest.

Use the del statement:

del M

And by the way, a float64 array of shape (1000, 1000) takes only 7 Mb. If you're having memory problems, it's likely that the problem is elsewhere.

Source Link
tiago
  • 23.7k
  • 13
  • 75
  • 89

Use the del statement:

del M

And python will take care of the rest.