mirror of
https://github.com/Comfy-Org/ComfyUI.git
synced 2026-08-09 11:38:32 +08:00
Make it easier to debug nested tensors. (#15383)
This commit is contained in:
@@ -83,6 +83,9 @@ class NestedTensor:
|
||||
def layout(self):
|
||||
return self.tensors[0].layout
|
||||
|
||||
def __repr__(self):
|
||||
return f"{type(self).__name__}({self.tensors!r})"
|
||||
|
||||
|
||||
def cat_nested(tensors, *args, **kwargs):
|
||||
cated_tensors = []
|
||||
|
||||
Reference in New Issue
Block a user