(A, B)
| 142 | # biases = tf.Variable(np.zeros(vocab_size, dtype=np.float32)) |
| 143 | |
| 144 | def dot(A, B): |
| 145 | C = A * B |
| 146 | return tf.reduce_sum(input_tensor=C, axis=1) |
| 147 | |
| 148 | # correct middle word output |
| 149 | emb_input = tf.nn.embedding_lookup(params=tfW, ids=tf_input) # 1 x D |
no outgoing calls
no test coverage detected