You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

CH_1 Tensor.md 698 B

6 years ago
12345678910111213141516171819202122232425262728293031
  1. # 第一章: Tensor
  2. ### Represents one of the outputs of an Operation
  3. ### 表示一个操作的输出
  4. ##### What is Tensor?
  5. ##### Tensor 是什么?
  6. TF uses column major order.
  7. TF 采用的是按列存储模式,如果我们用NumSharp产生一个2 X 3的矩阵,如果按顺序从0到5访问数据的话,是不会得到1-6的数字的,而是得到1,4, 2, 5, 3, 6这个顺序的一组数字。
  8. ```cs
  9. // generate a matrix:[[1, 2, 3], [4, 5, 6]]
  10. var nd = np.array(1f, 2f, 3f, 4f, 5f, 6f).reshape(2, 3);
  11. // the index will be 0 2 4 1 3 5, it's column-major order.
  12. ```
  13. ![1545631998951](assets/column-major order.png)
  14. ![1545631998951](assets/row-major order.png)

tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。

Contributors (1)