# tensorplay.linalg.tensorsolve Source: https://www.tensorplay.cn/docs/generated/tensorplay.linalg.tensorsolve.html ```python tensorplay.linalg.tensorsolve(A, B, dims=None) → Tensor ``` Solves the tensor equation A X = B after flattening the contracted dimensions into a square matrix. dims identifies dimensions of A that should be moved to the trailing side before the flattening step.