grafiti package

Submodules

grafiti.grafiti module

The main grafiti class.

class grafiti.grafiti.Graph

Bases: object

Class to generate graphs

add_node(callable_, depends_on=None)

Add a node to the graph.

Parameters
  • callable – The function to be called when this node is backward-ed.

  • depends_on – the Node s that this node depends on to compute its result

class grafiti.grafiti.Node(callable_, depends_on=None, *args, **kwargs)

Bases: object

The central object which represents everything

backward()
clear()

grafiti.runner module

Module contents

This is init.py.