Show Tensor Shape(showTensorShape)
The Show Tensor Shape node is a utility for inspecting the shape of a tensor at any point in a workflow.
show Tensor Shape
Description
The Show Tensor Shape node is a utility for inspecting the shape of a tensor at any point in a workflow. It belongs to the EasyUse/Logic category in ComfyUI-Easy-Use and is implemented by the showTensorShape class. The node takes a single required input and shows its shape, which makes it useful for debugging data flow, validating batch sizes, or confirming that a tensor has the expected rank before it enters another node.
Inputs
| Field | Type | Required | Description |
|---|---|---|---|
tensor | ANYTYPE | Yes | The value to inspect. This is typically a tensor, but ANYTYPE allows any data type to be connected. |
tensor is the only input. It is marked as required, so the node will not execute until a value is connected to it.
Outputs
This node has no outputs. It is a terminal debugging node. No data is returned to the graph after the shape is shown, and the input value cannot be passed through this node.
Usage Notes
- Place this node at the end of a branch to inspect the tensor flowing through that branch.
- Because it accepts
ANYTYPE, it can be connected to image batches, latent tensors, model objects, conditioning data, or any other value produced in ComfyUI. - The node does not modify its input; it only observes and reports the shape.
- Use it when a pipeline fails with an unexpected shape error, or when you need to verify that the output of a previous node matches the expected format.
Comments
Sign in with GitHub to join the discussion.