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