• Home
  • About
    • Home x Work photo

      Home x Work

      Jianxu Chen's personal website and blogs

    • Learn More
    • Email
    • LinkedIn
    • Instagram
    • Github
  • Posts
    • All Posts
    • All Tags
  • Research
  • Publication

Torch Double Tensor

28 Mar 2016

Reading time ~1 minute

In Torch 7, one should pay attention to the Tensor type, especially when using GPU.

Suppose you have a 1000-by-1000 float Tensor and another 1000-by-1000 double Tensor. When you write it to a “.t7” data file, you will find the difference between their physical sizes is huge, not 2x.



Torch 7Deep Learning Programming Like Tweet +1