MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / check_same_shape

Function check_same_shape

diffusers/tests/pipelines/test_pipelines_common.py:69–71  ·  view source on GitHub ↗
(tensor_list)

Source from the content-addressed store, hash-verified

67
68
69def check_same_shape(tensor_list):
70 shapes = [tensor.shape for tensor in tensor_list]
71 return all(shape == shapes[0] for shape in shapes[1:])
72
73
74def check_qkv_fusion_matches_attn_procs_length(model, original_attn_processors):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected