(tensor_list)
| 67 | |
| 68 | |
| 69 | def 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 | |
| 74 | def check_qkv_fusion_matches_attn_procs_length(model, original_attn_processors): |
no outgoing calls
no test coverage detected