Validate that tensor shapes are compatible for matrix multiplication
type CanMultiply = IsMatMulCompatible<[2, 3], [3, 4]> // truetype CannotMultiply = IsMatMulCompatible<[2, 3], [4, 5]> // false Copy
type CanMultiply = IsMatMulCompatible<[2, 3], [3, 4]> // truetype CannotMultiply = IsMatMulCompatible<[2, 3], [4, 5]> // false
Validate that tensor shapes are compatible for matrix multiplication