Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
74888fee
Commit
74888fee
authored
Oct 04, 2018
by
Minjie Wang
Browse files
readout signature
parent
8e71b64e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
python/dgl/batch.py
python/dgl/batch.py
+19
-0
No files found.
python/dgl/batch.py
View file @
74888fee
...
@@ -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]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment