def agent_one_step(self, sess, agent_model, batch_data, run_array, weights=1):
    feed_dict = {agent_model.word: batch_data['word'], agent_model.pos1: batch_data['pos1'], agent_model.pos2: batch_data['pos2'], agent_model.ins_label: batch_data['agent_label'], agent_model.length: batch_data['length'], agent_model.weights: weights}
    if (('mask' in batch_data) and hasattr(agent_model, 'mask')):
        feed_dict.update({agent_model.mask: batch_data['mask']})
    result = sess.run(run_array, feed_dict)
    return result
def agent_one_step(self, sess, agent_model, batch_data, run_array, weights=1):
    feed_dict = {agent_model.word: batch_data['word'], agent_model.pos1: batch_data['pos1'], agent_model.pos2: batch_data['pos2'], agent_model.ins_label: batch_data['agent_label'], agent_model.length: batch_data['length'], agent_model.weights: weights}
    if (('mask' in batch_data) and hasattr(agent_model, 'mask')):
        feed_dict.update({agent_model.mask: batch_data['mask']})
    result = sess.run(run_array, feed_dict)
    return result