threestudio-project / threestudio

A unified framework for 3D content generation.
Apache License 2.0
6.32k stars 480 forks source link

avoid saving whole tensor with .clone() #457

Open kamwoh opened 7 months ago

kamwoh commented 7 months ago

https://discuss.pytorch.org/t/saving-tensor-with-torch-save-uses-too-much-memory/46865/2

saving the text embedding as cache without .clone() will have the file size of whole tensor.