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

Function dot1

recommenders/rbm_tf_k_faster.py:21–25  ·  view source on GitHub ↗
(V, W)

Source from the content-addressed store, hash-verified

19
20
21def dot1(V, W):
22 # V is N x D x K (batch of visible units)
23 # W is D x K x M (weights)
24 # returns N x M (hidden layer size)
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)

Callers 3

buildMethod · 0.70
free_energyMethod · 0.70
forward_hiddenMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected