'Set Weights.
Assign a tensor variable a given value.
Arguments:
tensor: `Tensor`. The tensor variable to assign value.
weights: The value to be assigned.'

def set_weights(self, tensor, weights):

    op = tf.assign(tensor, weights)
    self.trainer.session.run(op)
