Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error raised when taking dot of a single Tensor (#5651)
When `ops` is a `Tensor`, this line: ``` if len(coeffs) != len(ops) ``` raises an error because `Tensor` does not have `len`. Moving the `isinstance` checks for `ops` to the beginning of the function.
- Loading branch information