Comfy-Org / Comfy-Org/ComfyUI

UserWarning: Copy construct from tensor - samplers.py:321

Open
#1,842 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.