1 2 3 | # n表示矩阵的行列数 mat_tf = tf.random_normal((n, n), 0, 1) mat_tf_inv = tf.matrix_inverse(mat_tf) |
1 2 3 | # n表示矩阵的行列数 mat_normal = np.mat(np.random.normal(0, 1, (n, n))) mat_normal_inv = np.linalg.inv(mat_normal) |
欢迎光临 智客公社 (http://bbs.cnaiplus.com/) | Powered by Discuz! X3.4 |