Skip to content

Instantly share code, notes, and snippets.

@d3lm
Last active August 7, 2019 13:10
Show Gist options
  • Save d3lm/c5911c90adb0fa599138971e203c77b4 to your computer and use it in GitHub Desktop.
Save d3lm/c5911c90adb0fa599138971e203c77b4 to your computer and use it in GitHub Desktop.
class Operation():
def __init__(self, input_nodes=None):
self.input_nodes = input_nodes
self.output = None
# Append operation to the list of operations of the default graph
_default_graph.operations.append(self)
def forward(self):
pass
def backward(self):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment