(V, W)
| 19 | |
| 20 | |
| 21 | def 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 | |
| 27 | def dot2(H, W): |
| 28 | # H is N x M (batch of hiddens) |
no outgoing calls
no test coverage detected