(V, W)
| 65 | |
| 66 | |
| 67 | def 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 | |
| 73 | def dot2(H, W): |
| 74 | # H is N x M (batch of hiddens) |
no outgoing calls
no test coverage detected