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

Function dot1

recommenders/rbm_tf_k.py:67–71  ·  view source on GitHub ↗
(V, W)

Source from the content-addressed store, hash-verified

65
66
67def dot1(V, W):
68 # V is N x D x K (batch of visible units)
69 # W is D x K x M (weights)
70 # returns N x M (hidden layer size)
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)

Callers 4

buildMethod · 0.70
free_energyMethod · 0.70
forward_hiddenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected