Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjkkkjjj committed May 15, 2024
2 parents 1f1e6dd + 397fa33 commit 4f6b98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Matft/core/object/mfstructure.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ internal func shape2strides(_ shape: inout [Int], mforder: MfOrder) -> [Int]{
case .Row://, .None:
var prevAxisNum = shape2size(&shape)
for index in 0..<shape.count{
ret[index] = prevAxisNum / shape[index]
ret[index] = prevAxisNum / max(shape[index],1)
prevAxisNum = ret[index]
}
case .Column:
Expand Down

0 comments on commit 4f6b98e

Please sign in to comment.