Fun with Python’s sys.getrefcount()

Python has a function called sys.getrefcount() that tells you the reference count of an object. For example, the following code,import sysprint sys.getrefco… Read more

Similar

How to Trick a Neural Network in Python 3

In this tutorial, you will try 'fooling' or tricking an animal classifier. As you work through the tutorial, you'll use OpenCV, a computer-vision library, and PyTorch, a deep learning library. By the end of the tutorial, you will have a tool for trick... (more…)

Read more »