- TensorFlow 2.0 Quick Start Guide
- Tony Holdroyd
- 58字
- 2021-06-24 16:02:03
Casting a tensor to a NumPy/Python variable
Should you need to, you can cast a tensor to a numpy variable as follows:
print(t2.numpy())
The output will be as follows:
[[[ 0. 1. 2.] [ 3. 4. 5.]] [[ 6. 7. 8.] [ 9. 10. 11.]]]
Take this, also:
print(t2[1, 0, 2].numpy())
The output will be as follows:
8.0
推薦閱讀
- Oracle SOA Governance 11g Implementation
- Getting Started with Oracle SOA B2B Integration:A Hands-On Tutorial
- Dreamweaver 8中文版商業案例精粹
- Visual FoxPro 6.0數據庫與程序設計
- 西門子S7-200 SMART PLC從入門到精通
- 21天學通C++
- 分布式多媒體計算機系統
- 計算機系統結構
- 網絡綜合布線設計與施工技術
- Implementing Splunk 7(Third Edition)
- Excel 2007常見技法與行業應用實例精講
- 學練一本通:51單片機應用技術
- Linux系統下C程序開發詳解
- 深度學習原理與 TensorFlow實踐
- Creating ELearning Games with Unity