***----------------------------做FYP需要,新学Torch7和Lua,把解题思路和理解记在这里,欢迎交流指正----------------------------***
***----------------------------学习课程based on Oxford University Machine Learning Course 2014-201Nando de Freitas----------------------------***
Course and practical Information
Practical 1: https://www.cs.ox.ac.uk/people/nando.defreitas/machinelearning/practicals/practical1.pdf
1. 三种方法extract elements in Tensor:
首先create Tensor in Torch用到指令 torch.Tensor()
torch.Tensor({
{1,2,3},{4,5,6},{7,8,9}})