UserWarning: Copy construct from tensor - samplers.py:321
Open
User Support
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
`C:\ComfyUI\comfy\samplers.py:321: UserWarning: To copy construct from a tensor, it is recommended to use sourceTensor.clone().detach() or sourceTensor.clone().detach().requires_grad_(True), rather than torch.tensor(sourceTensor).`
Warning appears once on first generation as of commit 7fbb217 using xformers, no other problems noticed, using PyTorch 2.1.0 cu121, xformers 0.0.22.post7.
Contributor guide
Assessment
This issue has not been assessed yet.