Placeholder
1
2
3
4
5
6
7
8
9
10
11
12
class placeholder:
"""Represents a placeholder node that has to be provided with a value
when computing the output of a computational graph
"""
def __init__(self):
"""Construct placeholder
"""
self.consumers = []
# Append this placeholder to the list of placeholders in the currently active default graph
_default_graph.placeholders.append(self)
Enter to Rename, Shift+Enter to Preview