def wordwise_grads(self, feature_vectors):
sess = K.get_session()
grad_sum = sess.run(self.grad_sum_tensor, feed_dict={
self.input_tensor: feature_vectors,
keras.backend.learning_phase(): 0
})
return grad_sum
评论列表
文章目录