syft.core.pointer.garbage_collection.gc_strategy

The strategy that all GC Heuristics should implement.

Classes

GCStrategy(*args, **kwargs)

The Strategy that all GC Heuristics should inherit.

class syft.core.pointer.garbage_collection.gc_strategy.GCStrategy(*args, **kwargs)[source]

Bases: abc.ABC

The Strategy that all GC Heuristics should inherit.

__init__(*args, **kwargs)[source]

Initialize an object for GCStratgy. The subclasses that require more logic to be used, should implement the __init__ method

abstract reap(pointer)[source]

What happens when a Ponter is deleted. It should be implemented in the GCStrategy that extends this class