Commit 74888fee authored by Minjie Wang's avatar Minjie Wang
Browse files

readout signature

parent 8e71b64e
...@@ -96,6 +96,25 @@ class BatchedDGLGraph(DGLGraph): ...@@ -96,6 +96,25 @@ class BatchedDGLGraph(DGLGraph):
# TODO # TODO
pass pass
def readout(self, reduce_func):
"""Perform readout for each graph in the batch.
The readout value is a tensor of shape (B, D1, D2, ...) where B is the
batch size.
Parameters
----------
reduce_func : callable
The reduce function for readout.
Returns
-------
dict of tensors
The readout values.
"""
# TODO
pass
''' '''
def query_new_node(self, g, u): def query_new_node(self, g, u):
idx = self.graph_idx[g] idx = self.graph_idx[g]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment