첨부 실행 코드는 나눔고딕코딩 폰트를 사용합니다.
728x90
반응형
728x170
import numpy as np
import tensorflow as tf

ndarray = np.array([(2, 7, 2), (1, 4, 2), (9, 0, 2)], dtype = 'float32')

tensor = tf.matrix_determinant(ndarray)

with tf.Session() as sess:
    print(sess.run(tensor))

[결과]

55.999992
728x90
반응형
그리드형(광고전용)
Posted by icodebroker

댓글을 달아 주세요