- Neural Network Programming with TensorFlow
- Manpreet Singh Ghotra Rajdeep Dua
- 76字
- 2021-07-02 15:17:08
Inverse matrix
The matrix inverse of I is denoted as . Consider the following equation; to solve it using inverse and different values of b, there can be multiple solutions for x. Note the property:

The following example shows how to calculate the inverse of a matrix using the matrix_inverse operation:
import tensorflow as tf
mat = tf.constant([[2, 3, 4], [5, 6, 7], [8, 9, 10]], dtype=tf.float32)
print(mat)
inv_mat = tf.matrix_inverse(tf.transpose(mat))
with tf.Session() as sess:
print(sess.run(inv_mat))
推薦閱讀
- Greenplum:從大數(shù)據(jù)戰(zhàn)略到實(shí)現(xiàn)
- Python金融大數(shù)據(jù)分析(第2版)
- 區(qū)塊鏈通俗讀本
- WS-BPEL 2.0 Beginner's Guide
- 深度剖析Hadoop HDFS
- Microsoft Power BI數(shù)據(jù)可視化與數(shù)據(jù)分析
- Apache Kylin權(quán)威指南
- 圖數(shù)據(jù)實(shí)戰(zhàn):用圖思維和圖技術(shù)解決復(fù)雜問題
- 探索新型智庫發(fā)展之路:藍(lán)迪國際智庫報告·2015(上冊)
- Power BI智能數(shù)據(jù)分析與可視化從入門到精通
- 貫通SQL Server 2008數(shù)據(jù)庫系統(tǒng)開發(fā)
- Access 2010數(shù)據(jù)庫程序設(shè)計實(shí)踐教程
- 實(shí)現(xiàn)領(lǐng)域驅(qū)動設(shè)計
- 中國云存儲發(fā)展報告
- Unity for Architectural Visualization