YoshikiMas / pr4sss_python

Phase reconstruction for sound source separation
MIT License
1 stars 0 forks source link

高速化 #3

Closed YoshikiMas closed 2 years ago

YoshikiMas commented 4 years ago

不必要な.to(device)を除去 https://discuss.pytorch.org/t/pytorch-tensor-to-device-too-slow/70474

torch.as_tensorを利用 https://stackoverflow.com/questions/48482787/pytorch-memory-model-torch-from-numpy-vs-torch-tensor