首页 > 代码库 > 将Tensor输出到文件

将Tensor输出到文件

 

 

  local length = part2:size(1)
  local file = io.open(/home/xbwang/Desktop/part2original,a)
  for j = 1,length do
    number = part2[j]
    file:write(tostring(number)..\n)
  end

 

将Tensor输出到文件