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

Function dot2

recommenders/rbm_tf_k.py:73–77  ·  view source on GitHub ↗
(H, W)

Source from the content-addressed store, hash-verified

71 return tf.tensordot(V, W, axes=[[1,2], [0,1]])
72
73def dot2(H, W):
74 # H is N x M (batch of hiddens)
75 # W is D x K x M (weights transposed)
76 # returns N x D x K (visible)
77 return tf.tensordot(H, W, axes=[[1], [2]])
78
79
80class RBM(object):

Callers 3

buildMethod · 0.70
forward_logitsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected