MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / dot2

Function dot2

recommenders/rbm_tf_k_faster.py:27–31  ·  view source on GitHub ↗
(H, W)

Source from the content-addressed store, hash-verified

25 return tf.tensordot(V, W, axes=[[1,2], [0,1]])
26
27def dot2(H, W):
28 # H is N x M (batch of hiddens)
29 # W is D x K x M (weights transposed)
30 # returns N x D x K (visible)
31 return tf.tensordot(H, W, axes=[[1], [2]])
32
33
34class RBM(object):

Callers 2

buildMethod · 0.70
forward_logitsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected