torch.chain_matmul
torch.chain_matmul(*matrices, out=None)
Returns the matrix product of the N 2-D tensors. This product is
   efficiently computed using the matrix chain order algorithm which
   selects the order in which incurs the lowest cost in terms of
   arithmetic operations ([CLRS]). Note that since this is a function
   to compute the product, N needs to be greater than or equal to 2;
   if equal to 2 then a trivial matrix-matrix product is returned. If
   N is 1, then this is a no-op - the original matrix is returned as
   is.
Warning:
 "torch.chain_matmul()" is deprecated and will be removed in a
 future PyTorch release. Use "torch.linalg.multi_dot()" instead,
 which accepts a list of two or more tensors rather than multiple
 arguments.

Parameters:
      * matrices (Tensors...) -- a sequence of 2 or more 2-D
        tensors whose product is to be determined.
  * **out** (*Tensor**, **optional*) -- the output tensor. Ignored
