MCPcopy
hub / github.com/tkipf/gcn / dot

Function dot

gcn/layers.py:30–36  ·  view source on GitHub ↗

Wrapper for tf.matmul (sparse vs dense).

(x, y, sparse=False)

Source from the content-addressed store, hash-verified

28
29
30def dot(x, y, sparse=False):
31 """Wrapper for tf.matmul (sparse vs dense)."""
32 if sparse:
33 res = tf.sparse_tensor_dense_matmul(x, y)
34 else:
35 res = tf.matmul(x, y)
36 return res
37
38
39class Layer(object):

Callers 2

_callMethod · 0.85
_callMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected