Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BugFix] Fixed Inappropriate Logical Expression (#16272)
[BugFix] Fixed a comparison for splitting tensor In the `tensor_split` method, there's a comparsion that checks if the input tensor is zero-dimensional or one-dimensional long tensor. In the comparsion, there's a typo that converts the shape of the tensor to a list and compares against integer. This commit fixes the bug by comapring the length of the tensor against the integer. Signed-off-by: fazledyn-or <[email protected]>
- Loading branch information