mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-02-28 22:51:45 +00:00
Remove useless code.
This commit is contained in:
parent
90f349f93d
commit
1f1c7b7b56
@ -17,7 +17,7 @@
|
|||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import torch
|
import torch
|
||||||
from einops import pack, rearrange, unpack
|
from einops import rearrange
|
||||||
|
|
||||||
|
|
||||||
import comfy.ops
|
import comfy.ops
|
||||||
@ -98,14 +98,6 @@ def default(*args):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
def pack_one(t, pattern):
|
|
||||||
return pack([t], pattern)
|
|
||||||
|
|
||||||
|
|
||||||
def unpack_one(t, ps, pattern):
|
|
||||||
return unpack(t, ps, pattern)[0]
|
|
||||||
|
|
||||||
|
|
||||||
def round_ste(z: torch.Tensor) -> torch.Tensor:
|
def round_ste(z: torch.Tensor) -> torch.Tensor:
|
||||||
"""Round with straight through gradients."""
|
"""Round with straight through gradients."""
|
||||||
zhat = z.round()
|
zhat = z.round()
|
||||||
|
Loading…
Reference in New Issue
Block a user