- 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))
推薦閱讀
- PyTorch深度學(xué)習(xí)實戰(zhàn):從新手小白到數(shù)據(jù)科學(xué)家
- Access 2016數(shù)據(jù)庫教程(微課版·第2版)
- Python金融大數(shù)據(jù)分析(第2版)
- Python數(shù)據(jù)分析、挖掘與可視化從入門到精通
- 數(shù)據(jù)驅(qū)動設(shè)計:A/B測試提升用戶體驗
- Remote Usability Testing
- 數(shù)據(jù)庫原理與設(shè)計(第2版)
- 基于OPAC日志的高校圖書館用戶信息需求與檢索行為研究
- MATLAB Graphics and Data Visualization Cookbook
- 二進制分析實戰(zhàn)
- Doris實時數(shù)倉實戰(zhàn)
- MySQL數(shù)據(jù)庫技術(shù)與應(yīng)用
- Scratch 2.0 Game Development HOTSHOT
- 數(shù)據(jù)中心UPS系統(tǒng)運維
- GameMaker Game Programming with GML