tensorflow tensor转numpy

 sess = tf.Session()
    with sess.as_default():
        change = tf.expand_dims(
            tf.reshape(batch_rodrigues((np.array(gt_data['pose_0']).flatten()).reshape(-1, 3).astype(np.float32)),
                       (24, 3, 3)), 0)

        gt_data['pose_0'] = change.eval()

此时 change.eval()就是 numpy类型

你可能感兴趣的:(DL)